Small optimization on isPalindrome()