Added palindrome function