def token_to_dirname(token: str) -> str:
    """Cleans up a given token from quotes, strip from spaces, etc.

    The returned string is a valid directory name on the current platform.

    Args:
        token(str): 'dirty' folder name obained from the user through CLI
    Returns:
        valid directory name
    """
    foldername = token
    foldername = foldername.replace('"', '')
    foldername = foldername.strip(' ')
    return foldername