This function returns the offset of a substring in a string.Parameters: string, substringFor example: The result equals 2.