Problem with gsm remote control sketch

You have declared LastMess as a String - try putting the L & H in double quotes? LastMess == "H"...