use cartItem instead of inputs[i]
refactor getSummaryText() : direct to return info
refactor joinText() : direct to return inventoryText
Add getCartItemText() to simplify getInventoryText(inputs)