replace spaces with dashes in locations