String issue

PaulS:

i don't know exactly what they mean, but they are useless for me.

If you don't know what they mean, how do you know that they are useless? What if one of the numbers indicated the message length? Wouldn't that be useful information?

No because, the project is:
Some codes to see the serial connection with the phone, another command to change the memory to read (AT+CPMS="ME"), after I read the first message. If the message have the word "Ligar" but in PDU format (in PDU format the message content is the end of the line), the code turn a port HIGH. Else, do nothing.
If the message have the word "Desligar" but in PDU format, the code turn this same port, LOW.

because, I said this answer were useless for me. The line of the message is always with the same end for the messages I want to parse.