private String readStringRecord(long id) throws SQLException {

		PreparedStatement s =
			selectByIdStatement.prepareIfNeeded(() -> db.prepareStatement(selectByIdSQL));
		String value = null;
		s.setInt(1, (int) id);
		try (ResultSet rs = s.executeQuery()) {
			if (!rs.next()) {
				return value;
			}
			value = rs.getString(1);
		}
		insertRecord(id, value);
		return value;
	}
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