407 ETR Interview Question

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