improve ValidPalindrome