This is a palindrome function.