I need some help separating a long string from a textbox using ";" into an array of few different strings. I'm programming a simple robot and in this textbox contains the commands for the robots movements, but when fill in few different movements the robot makes only one of them. Here is the code for the box. What can you suggest for my problem?

```
public void ParseCommands(string txtS)
{
    char[] delimiterChars = { ';' };

    string text = txtS;
    System.Console.WriteLine($"Original text: '{text}'");

    string[] words = text.Split(delimiterChars);
    System.Console.WriteLine($"{words.Length} words in text:");
}

private void cmdSend_Click(object sender, EventArgs e)
{
    try
    {
        string txtS, lastMsg;
        txtS = txtSend.Text;
        byte[] bySend = Encoding.Default.GetBytes(txtS);
        byte[] byReceive = new byte[255];
        elfinSocket.Send(bySend, 0, txtS.Length, 0);
        int intReceive = elfinSocket.Receive(byReceive, 0, byReceive.Length, 0);
        Array.Resize(ref byReceive, intReceive);
        lastMsg = Encoding.Default.GetString(byReceive);
        lblRecieve.Text = lastMsg;
    }
    catch (SystemException error)
    {
        MessageBox.Show(error.Message);
    }

}

```