Quick updates to isPalindrome