private static boolean containsUnquotedText(String stringToSearch, String textToLocate) {

		StringBuffer buffer = new StringBuffer();
		boolean inQuotes = false;
		for (int i = 0; i < stringToSearch.length(); i++) {
			char c = stringToSearch.charAt(i);
			if (c == '\"') {
				inQuotes = !inQuotes;
			}
			else if (!inQuotes) {
				buffer.append(c);
			}
		}

		return (buffer.indexOf(textToLocate) != -1);
	}
Returns true if the given string is in the searchString and not between a pair of quotes.
Note the character MUST NOT BE a quote.
@param stringToSearch the string to search
@param textToLocate the text to search for.
@return true if the given text is in the searchString and not between a pair of quotes.
Ghidra/Framework/Gui/src/main/java/ghidra/framework/options/AbstractOptions.java