def _getindex(s, search=['ADT', 'CHD', 'INF']):
    """
        Finds the smallest index of all the elements in search (list)
            present in the s (string).
        inputs:
            s: Parent string to search in (string)
            search: list of sub-strings to search for (list)
        returns:
            index: list of all indices (list)
    """
    index = []
    for value in search:
        index.append(int(s.find(value)))
    return index
