Checks word for palindrome