I have this code below where I got from this forum that I followed through. It did not work for me but they claim that the code is fine. I already tried several string compariso
I see you try to create some like command line interpreter for test;
You can use Serial command line interpreter for Arduino or just see code, how it's work.
This is not answer, but some help =)