407 ETR interview question

Give a function to test whether a string is palindrome excluding those punctuation.