refining separator lengths and reserved characters