In some database tools, such as RapidSQL, anything to the right of chr(0) becomes invisible:
SELECT
'Hello' || CHR (0) || 'TOM' STRING,
LENGTH ('Hello' || CHR (0) || 'TOM') LEN,
SUBSTR ('Hello' || CHR (0) || 'TOM', 6, 4) STRG_1,
SUBSTR ('Hello' || CHR (0) || 'TOM', 7, 3) STRG_2
FROM DUAL
The output in the RapidSQL is:
STRING LEN STRG_1 STRG_2
Hello 9 TOM TOM