def clean(text: str) -> str:
    """Clean a paragraph of text; removing extra whitespace."""
    # text = text.strip()
    # lines = [line for line in text.split('\n') if line]
    # return " ".join(lines)
    return " ".join(text.split())