easy to find the palindrome of a string