modify palindrome