Check if word is a palindrome or not