code: public static String delete(final String inString, final String pattern) {
      return StringUtils.replace(inString, pattern, "");
    }
docs: Delete all occurrences of the given substring.
  
  @param inString the original {@code String}
  @param pattern the pattern to delete all occurrences of
  @return the resulting {@code String}