update second trial of longest-palindromic-substring