private String generateSQLCommand(String ptr) {
		int first = ptr.indexOf('#');
		int second = ptr.indexOf('#', first + 1);
		String res;
		res = ptr.substring(0, first);
		res += name;
		if (second >= 0) {
			res += ptr.substring(first + 1, second);
			res += name;
			res += ptr.substring(second + 1);
		}
		else {
			res += ptr.substring(first + 1);
		}
		return res;
	}
Replace '#' character in the -ptr- command with our -name- and return the string
@param ptr is the string to be modified
@return the modified string
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/client/tables/SQLStringTable.java