Trouble splitting serial in data (Strings)

A suggestion.
Construct JSON strings in the Arduino then send that to node red.

Then it's a simple case of using the JSON node to convert your string data to useable object.

No need to split your data whatsoever.

You could also include a topic on the JSON string to simplify routing MSG's through the switch node.