Using IndexOf instead of toMatch, as we just want to compare strings, not Regexs