fix LongestPalindromeSubstring