Solved sixth brain teaser

Function 6. Function receives a string and checks to see if it's a
palindrome. For example string "Madam, I'm Adam."is a palindrome. Notice
how we ignore characters such as full stop and whitespace.