create two functions to stringify a segment/separator