Hello there,
I think what you should do is to explode your string into an array of characters, but with reference with something for example
A0 and if you have more than one reference head, simple use switch case:
see the following example
string[] str = incoming_string.Split(' ');
switch (str[0])
{
case "A0":
break;
case "F0":
break;
}
an so on
Good Luck,
z3ngew