Modified toCleanSegment to suppress sequences of "-"