init ValidPalindrome - 2nd solution, improve some performance