code: public static String removeWord(final String host, final String word, final String delimiter) {
      if (host.indexOf(word) == -1) {
        return host;
      } else {
        int beginIndex = host.indexOf(word);
        int endIndex = beginIndex + word.length();
        if (beginIndex == 0) { return host.substring(endIndex + 1); }
        if (endIndex == host.length()) {
          return host.substring(0, beginIndex - delimiter.length());
        } else {
          String before = host.substring(0, beginIndex);
          String after = host.substring(endIndex + 1);
          return before + after;
        }
      }
    }
docs: <p>
  removeWord.
  </p>
  
  @param host
  a {@link java.lang.String} object.
  @param word
  a {@link java.lang.String} object.
  @param delimiter
  a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.