Faster and simpler _replace() method
2 files changed