def find_sub_string_indexes( term, sentence ):
    """ Return the starting index of each location in 'sentence' matching 'term'.
    This function is only used for HTML bolding.
    """
    idxL = []
    i = 0
    while i < len(sentence):

        if sentence.startswith( term, i):
            idxL.append((i,len(term)))
            i += len(term)
        else:
            i += 1

    return idxL