Changed replace to replaceAll
Merge pull request #335 from Vexatos/master

Changed replace to replaceAll