correct longest palindrome substr