Palindrome Checker - almostomia

My code works for all the tests but I’m having an issue getting almostomia to return false. Any help would be great thank you!

  **Your code so far**
function palindrome(str) {
const a = str.replace(/[^a-zA-Z0-9]/gi, '')

const rst = a.split('').reverse().join('')

const rstResult = String.fromCharCode(parseInt(rst,16));
const strResult = String.fromCharCode(parseInt(a,16));

if (strResult === rstResult) {
return true;
return false

  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: JavaScript Algorithms and Data Structures Projects - Palindrome Checker

Link to the challenge:

can you describe what this is doing?

Essentially it converts a word into a string of Unicode with 16 as the base as they’re 16-bit numbers (UTF-16).

I thought that comparing the words in Unicode would be a good option

Yeah, I would double check that