get rid of those trailing dashes