code: public Item withString(String attrName, String val) {
          checkInvalidAttribute(attrName, val);
          attributes.put(attrName, val);
          return this;
      }
docs: Sets the value of the specified attribute in the current item to the
  given string value.