Added palindrome detector