[tag cag gen] remove spaces and replace with dashes
if they exist