def ascii_encode(string: str):
    """
    Encodes the string in ascii in ignore mode

    Args:
        string: The string

    Returns:
        The string in ascii
    """

    return str(string.encode('ascii', 'ignore'))[2:-1]