(last)indexOfAny(index)

whitespace

some code reductions

thanks monarchdodra for some benchmark and speedup ideas

tab to space