Adds attr_allowed for string attributes