private String normalizeSpaces(String str) {
		// Remove leading and trailing spaces
		String newStr = str;
		newStr = newStr.trim();

		// Collapse consecutive spaces into 1 space
		newStr = newStr.replaceAll(" {2,}", " ");

		// Collapse consecutive tabs into 1 tab
		newStr = newStr.replaceAll("\t{2,}", "\t");

		return newStr;
	}
Storage class for Strings identified by the String Searcher and their associated
ngram scores.  The scores, combined with the score thresholds, determine if this 
string passes or fails.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/string/StringAndScores.java