A simple palindrome checker