Java's String.indexOf can be slow (quadratic) | Dark Hacker News