code: private String stringReplace(String text, String target, String replacement) {
  		return Pattern.compile(target.toString(), Pattern.LITERAL).matcher(
  				text).replaceAll(replacement);
  	}
docs: String.replace(String arg0, String arg1) in java 1.5