fix when palindrome string has even characters.