def find_non_whitespace(string, i=0):
    """
    Return index of first non-whitespace character in string starting at index
    i. Returns -1 if there are None.
    """
    for j in range(i, len(string)):
        if not string[j].isspace():
            return j
    else:
        return -1