Adding palindrome function