private static String replace(String str, Pattern spaceCleanerPattern) {
		Matcher matcher = spaceCleanerPattern.matcher(str);
		StringBuilder buffy = new StringBuilder();
		while (matcher.find()) {
			String captureGroup = matcher.group(1);
			matcher.appendReplacement(buffy, captureGroup);
		}
		matcher.appendTail(buffy);
		return buffy.toString();
	}
Remove superfluous function signature spaces from specified string
@param str string
@return string with unwanted spaces removed
Ghidra/Features/Base/src/main/java/ghidra/app/util/demangler/DemanglerUtil.java