This function has two signatures:
Returns the index within text string of the first occurrence of the toFind substring.
Returns the index within text string of the first occurrence of the toFind substring. The search starts from fromOffset index.
indexof('abcd', 'bc') returns 1.
indexof('abcdbc', 'bc', 2) returns 4.