Simple Ruby script to check if a word is a palindrome.