replace spaces with dash for instance names