is_palindrome function working