Need to make my serial command array work more efficiently and reliably

Look at the serial input basics tutorial to see how to receive and parse serial data without using the problematic String class.

Example #5 of the tutorial shows how to receive and parse comma delimited data.

See here for why to not use Strings.