public static String formatSearchString(String searchStr, String mask)
			throws InvalidInputException {
		String retStr = "";

		if (searchStr.length() != mask.length()) {
			throw new InvalidInputException("mask and search string not the same length.");
		}

		for (int i = 0; i < searchStr.length(); i++) {
			char valChar = searchStr.charAt(i);
			char maskChar = mask.charAt(i);
			if (valChar == '1') {
				retStr += "1";
			}
			else if (valChar == '0' && maskChar == '1') {
				retStr += "0";
			}
			else if (valChar == '0' && maskChar == '0') {
				retStr += ".";
			}
			else {
				retStr += "0";
			}
		}

		return retStr;
	}
Returns a binary string with '.' characters where bits are masked.  This is used in
formatting strings for display in the preview table.

@param searchStr
@param mask
@return
@throws InvalidInputException
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/util/InstructionSearchUtils.java