public static String replaceAll(String str,String originalToken,String replacementToken){
  return str.replaceAll(Pattern.quote(originalToken),Matcher.quoteReplacement(replacementToken));
}

public static String replaceAll ( String str , String originalToken , String replacementToken ) { return str . replaceAll ( Pattern . quote ( originalToken ) , Matcher . quoteReplacement ( replacementToken ) ) ; }
replaces all occurrances of this originaltoken in this string with this replacementtoken .
