const palindrome = str = { str = str.replace(/[W+|_]/g, '').toLowerCase() const str1 = str.split('').reverse().join('') return str1 === str } palindrome("My age is 0, 0 si ega ym."); // With love @kouqhar