Program to determine if a word is a Palindrome