recover palindrome