from typing import Optional


def clean_token(token: str, misc: str) -> Optional[str]:
    """Cleans whitespace, filters technical information

    Args:
        token: Token.
        misc: Contents of the "MISC" field in CONLLU format
    
    Returns:
        Clean token.

    """
    out_token = token.strip().replace(" ", "")
    if token == "Файл" and "SpaceAfter=No" in misc:
        return None
    return out_token