Check if word is palindrome