def clean_readname(readname: str) -> str:
    """
    Removes all characters after the first space.
    :param readname: the name of a read
    :return: the string of the readname up to the first space
    """
    return readname.split(" ", 1)[0]