improve performance of StringUtil.replace()
Merge pull request #383 from igal-getrailo/improve-029

improve performance of StringUtil.replace()