Update to use String.prototype.replace and regular expressions
Merge pull request #2 from tbasse/feature/regex

Update to use String.prototype.replace and regular expressions