fix inventory toString misuses SpotBugs issues