Longest Palindromic Substring undo