Fix to replace all occurrences when replacing, not just the first
Merge pull request #8 from kleinsch/replace-all

Replace all occurrences when replacing, not just the first