Add min length to isPalindrome