clean up leading/multiple/ending dashes