nmconfig: implement function for separating tokens