rename InventoryText to inventoryText in printInventory()
fix bug
refactor getInventoryText()