Check if a word, phrase, or sentence reads the same backward as forward (ignoring spaces and punctuation).