code: public StringClauses replace(String key, String newValue) throws IllegalArgumentException {
          return replaceImpl(key, StringUtil.trimToEmpty(newValue));
      }
docs: Replaces the given key with a new string. If the existing key does not exist, throws IllegalArgumentException