def strip_comments(l: str) -> str:
    """
    Strip any ``#`` comments from a line.
    
    :param str l: A string line, which may contain ``#`` comments
    :return str clean_line: The line ``l`` - stripped of any comments and excess whitespace.
    """
    return l.split('#', 1)[0].strip()