def InStr(*args):
    """Return the location of one string in another"""
    if len(args) == 2:
        text, subtext = args
        return text.find(subtext)+1
    else:
        start, text, subtext = args
        pos = text[start-1:].find(subtext)
        if pos == -1:
            return 0
        else:
            return pos + start