editing palindrome