My question is similar to this one:
Leave only two decimal places after the dot
However there is an added complexity. The numerical value is suffixed with a unit that can change into anything i.e.
string test = "0.1542 Mol";
or
string test1 = "0.5247 ml";
Essentially, I'd like something that can deal with both situations that can do this:
string test = "0.15 Mol";
and
string test1 = "0.52 ml";