longest palindromic substring using expand method