support specifying the separator in fromString and toString methods