Extracting the segment delimiter setup into a method

The segment initialize initalizes the segment and item
delimiters but now using the method setup_delimiters