Node MCU 8266 Client server, how to compare received msg

Hello all
im trying to switch cases with received text from client

while(1)
      {

      
        
        if(TKDClient.available())
        {
          // Here We Read The Message
          String Message = TKDClient.readStringUntil('\r');
          // Here We Print The Message On The Screen
          Serial.println(Message);
		  if(Message == ALRM1)
		  {
			Serial.println(" Alarm from client-1")  
		  }
		  
         
          TKDClient.print("\nWe Got Your Message");
          TKDClient.flush();
        }

Above is my core, im trying to compare received message
but its not working
can anyone help

try Message.trim()
and what is ALRM1?

ALRM1? is the string that im sending from client

rahulkp1986:
ALRM1? is the string that im sending from client

No, it isn't. The String from the client is Message.