sanitize extraneous spaces in repository definitions