Remove redundant dashes.