Returns the index that corresponds to the first index of a substring in another string