improve Segment to convert it to string with separator