def naive_string_matcher(string, target):
    """ returns all indices where substring target occurs in string """
    snum = len(string)
    tnum = len(target)
    matchlist = []
    for index in range(snum - tnum + 1):
        if string[index:index + tnum] == target:
            matchlist.append(index)
    return matchlist