extract separator to variable