Final version of palindrome checker.