Use apache commons StringUtils.replace instead of String.replace, as
it's a lot faster.