code: public void remove(String toRemove) {
          if (toRemove.contains("*")) {
              set.clear();
              defaultContains = false;
          } else {
              if (defaultContains) {
                  set.add(toRemove);
              } else {
                  set.remove(toRemove);
              }
          }
      }
docs: Remove some tokens from the list. If the list is already empty or does not contains the tokens, this method will
  have no effect.
  
  @param toRemove
  String tokens to add to the list. This argument can be:
  <ul>
  <li>A single String token</li>
  <li>* (in this case the list will then be empty again)</li>
  </ul>