working on isPalindrome()