Inventory-Server: remove trailing/leading spaces, run scripts ordered, fix chars