Replace trivial regexp with string or index, twice as fast