class String: """ Class for utility methods on the Python str type. """ @staticmethod def is_empty(some_string: str) -> bool: """ Checks if 'some_string' is an empty string. An empty string is either a sequence with zero characters or one that consists only of space characters. Args: some_string: the string to be checked. Returns: bool: True if 'some_string' is empty, False otherwise. """ return not some_string or some_string.strip() == ""