finish valid palindrome