Here are Jest unit tests in Node.js JavaScript to prove the normalizeString()
function's effects:
const normalizeString = (str) => str.split('').join('|').replaceAll('|', '');
test('Handles unicode joiner characters', () => {
const str = 'hello' + '\u00A0' + 'world'; // non-breaking space
const result = normalizeString(str);
expect(result).toBe('helloworld'); // Space possibly disturbed