class Const {

  public static String replace( String string, String repl, String with ) {
    if ( string != null && repl != null && with != null ) {
      return string.replaceAll( Pattern.quote( repl ), Matcher.quoteReplacement( with ) );
    } else {
      return null;
    }
  }

}