@Deprecated public static String replace(String str,String what,String with){
  assert (what.length() > 0);
  return str.replace(what,with);
}

@ Deprecated public static String replace ( String str , String what , String with ) { assert ( what . length ( ) > 0 ) ; return str . replace ( what , with ) ; }
this replaces the occurances of ' what ' in ' str ' with ' with '
