Fixed parsing in viewInventory()