def filter(string,max_length):
    """
    This function filters any string passed to it. If the string contains more than
    <max_length> characters, it will return the string "Too Long!", otherwise it will
    return <string>.

    Parameters:
        string (str): A string to be filtered.
        max_length (int): If the string has more than this number of characters,
            it will be too long.

    Returns:
        (str): Either "Too Long!" or <string>
    """

    num_chars = len(string)

    if num_chars > max_length: # first fix
        out = "Too Long!"
    else:
        out = string # second fix

    return out