update Longest Palindromic Substring