Receiving serial data as string and comparing them with other strings

Thanks PaulS and yes I have full control on the data which is being sent.

This seems like a great idea. I will try to get it working in my code.