def index_default(i, char):
    """Returns the index of a character in a line, or the length of the string
    if the character does not appear.
    """
    try:
        retval = i.index(char)
    except ValueError:
        retval = 100000
    return retval