Ad

Write a function is_palindrome that takes in a string as an argument and returns True if the string is a palindrome, and False otherwise. A palindrome is a word, phrase, number, or other sequence of characters that reads the same forward and backward. For example, "racecar" is a palindrome, while "hello" is not.

Your function should ignore spaces and capitalization when checking if a string is a palindrome. For example, "A man a plan a canal Panama" should return True.

def is_palindrome(s: str) -> bool:
    pass