update Longest_Palindromic_Substring