adding sep function to convert from/to spaces from/to commas