modify Longest Palindromic Substring I