def clean(iterator) -> list:
    """
    Takes an iterator of strings and removes those that consist
    that str.strip considers to consist entirely of whitespace.
    """
    iterator = map(str.strip, iterator)
    return list(filter(bool, iterator))