got palindrome function