Coding Help

Thanks for the suggestion but it didn't end up working. Maybe I did it wrong?

What I changed the last if statement to was:

if (txtMsg.length() == txtMsgLength && txtMsg.startsWith("a") ) {
Serial.println(txtMsg);
txtMsg = "";
}

But the code still won't run twice.

Any other suggestions, or a fix on that old one?