How to slice/split a string by delimiter

If you want to use the Arduino version of the String class, you should have your head examined, and, if you persist in the fantasy that the Arduino has oodles of memory, look at String() - Arduino Reference

There, I fixed that for you.