modify palindrome 2