Determine if a sentence is a palindrome