Palindrome working but at the same time not?

Palindrome working but at the same time not?
0.0 0

#1

Tell us what’s happening:

Idk what is wrong, each test is returning the right thing but for some reason it isn’t registering as correct.
EDIT: its because i changed the name of the functionFacepalm
Your code so far

{
    var array=[];
    str=str.toLowerCase();
    str=str.replace(/[\W_]+/g,"");
    var ogstr=str;
    array=str.split("");  
    array.reverse();
    str=array.join("");
    if (str==ogstr)
    {
        return true;
    }else{
        return false;
    }

}

palindromeTester("race car");```
**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:**
https://www.freecodecamp.org/challenges/check-for-palindromes