Put the dashes on the correct end of the tags