simplify Inventory.prototype.joinText() method