manual indexOf seems to be faster than built-in one. 3050 ms