rewrite leetcode valid palindrome palindrome number palindrome partition i