Palindrome Transformation (string)