Addition of is_palindrome function