def index_in_str(text, substring, starting=0):
    """
    Gets index of text in string
    :arg text: text to search through
    :arg substring: text to search for
    :arg starting: offset
    :return position
    """

    search_in = text[starting:]
    if substring in search_in:
        return search_in.index(substring)
    else:
        return -1