Adding is_palindrome function