remove excess dashes