valid palindrome commit