Controll LED from ethsocket(telnet server)

Hello.

I control some LED strips with LED controller on an Arduino Mega 2560.

The idea is that I will be able to control the LEDs via analogwrite whit telnet server.
It works fine as it is now.
If I send LED1_255 will LED1 light 100%.

Is there a way to split the variable so that I can control everything with an if statement?
eg.

Sending LED_BLUE_255 so split LED & BLUE & 255 different variables to send to
analogwrite.

This is my code

#include <SPI.h>
#include <Ethernet.h>
#include <SoftwareSerial.h>

int BLUE = 44;
int GREEN = 45;
int RED = 46;


// Enter a MAC address, IP address and Portnumber for your Server below.
// The IP address will be dependent on your local network:
byte mac[] = { 0x00, 0x21, 0xAA, 0xAA, 0xAA, 0xBB };
IPAddress serverIP(192, 168, 000, 103);
int serverPort = 8888;



// Initialize the Ethernet server library
// with the IP address and port you want to use
EthernetServer server(serverPort);
#define BUFSIZ 64


void setup() {
  pinMode(BLUE, OUTPUT);   // sets the pin as output
  pinMode(GREEN, OUTPUT);   // sets the pin as output
  pinMode(RED, OUTPUT);   // sets the pin as output
  analogWrite(BLUE, 0);
  analogWrite(RED, 0);
  analogWrite(GREEN, 0);

  // start the serial for debugging
  //Serial.begin(9600);
  // start the Ethernet connection and the server:
  Ethernet.begin(mac, serverIP);
  server.begin();

}


void loop() {
  // put your main code here, to run repeatedly:

  ethsocket();

}


void ethsocket() {
  int index = 0;
  char Remote[BUFSIZ];

  EthernetClient client = server.available();
  if (client) {
    if (client.connected()) {
      while (client.available()) {
        char c = client.read();
        //Serial.print(c);                      // print to the screen
        if (c != '\n' && c != '\r') {           // no linefeed or CR so keep reading
          Remote[index] = c;
          index++;
          if (index >= BUFSIZ)
            index = BUFSIZ - 1;
          continue;
        }
        Remote[index] = '\0';
      }

      //Serial.println(Remote);                  // print string sent from iPhone

      if (strstr(Remote, "BRA")) {           // initialsend
        client.println("OKBRA");
      }

      if (strstr(Remote, "LED1_0")) {           // initialsend
        client.println("OK");
        analogWrite(BLUE, 0);
      }

      if (strstr(Remote, "LED1_128")) {           // initialsend
        client.println("OK");
        analogWrite(BLUE, 128);
      }

      if (strstr(Remote, "LED1_255")) {           // initialsend
        client.println("OK");
        analogWrite(BLUE, 255);
      }

      if (strstr(Remote, "LED2_0")) {           // initialsend
        client.println("OK");
        analogWrite(RED, 0);
      }

      if (strstr(Remote, "LED2_128")) {           // initialsend
        client.println("OK");
        analogWrite(RED, 128);
      }

      if (strstr(Remote, "LED2_255")) {           // initialsend
        client.println("OK");
        analogWrite(RED, 255);
      }
    }
  }
}