public static boolean endsWithWhiteSpace(String string) {
		return Character.isWhitespace(string.charAt(string.length() - 1));
	}
Returns a count of how many times the 'occur' char appears in the strings.

@param string the string to look inside
@param occur the character to look for/
@return a count of how many times the 'occur' char appears in the strings
Ghidra/Framework/Generic/src/main/java/ghidra/util/StringUtilities.java