Adding function separate_units, letting parse accept factors