Check for Palindromes, All except 'almostomla' and "My age is 0, 0 si ega ym." are working

Tell us what’s happening:

Your code so far

function palindrome(str) {
  // Good luck!

  //my program
  var  re=  str.replace(/[W_]/g,'');
  var  lower_str  =  re.toLowerCase();
  var  arr  =  lower_str.split('');
  var  i=0;while(i<arr.length){
    for(var  j=arr.length-1;j>=0;j--){
      if  (arr[i]===arr[j]){
     return  true;   
      }return  false;


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.

Link to the challenge:

This is saying replace the letter W (or an underscore) with an empty string, it needs to be \W