def is_hello_world(text : str): return text is not None and text.strip().lower() == "hello world" print(is_hello_world("ok")) print(is_hello_world("Hello World"))