public static String findWord(String s, int index, char[] charsToAllow) {

		WordLocation location = findWordLocation(s, index, charsToAllow);
		return location.getWord();
	}
Finds the word at the given index in the given string; if the word contains the given
charToAllow, then allow it in the string. For example, the string "The tree* is green" and
the index of 5, charToAllow is '*', then the result would be "tree*".
<p>
If the search yields only whitespace, then the empty string will be returned.

@param s the string to search
@param index the index into the string to "seed" the word.
@param charsToAllow chars that normally would be considered invalid, e.g., '*' so that the
           word can be returned with the charToAllow
@return String the word contained at the given index.
Ghidra/Framework/Generic/src/main/java/ghidra/util/StringUtilities.java