"Arduino Tutorial 20: Understand RGB LED's"- question

Following Paul McWhorter lesson 20. I using the Elego Mega 2560 R3 and I can’t seem to get this simple program to turn on an RGB LED when the user inputs “red”, “green”, “blue”. I typed the program exactly as Paul shows, but the Arduino doesn’t turn on LED. The Serial.println(myColor) confirms the text red, green or blue in serial monitor, but the if statement of if(myColor==“red”) as an example does nothing. I’m stumped. thanks for your help, from a newbie.

//ask user to select red, green or blue LED
//reading string. first declare a string called myColor

int redPin=8;
int greenPin=9;
int bluePin=10;

String myColor;
String msg=“Select LED color”;

void setup() {
// put your setup code here, to run once:

Serial.begin(9600);

pinMode(redPin,OUTPUT);
pinMode(greenPin,OUTPUT);
pinMode(bluePin,OUTPUT);

}

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

Serial.println (msg); //asks user to select LED color

//while loop, waiting for kyboard input from user

while(Serial.available()==0){
}

//read from keybard.

myColor=Serial.readString();

if(myColor==“red”){

digitalWrite(redPin,HIGH);
digitalWrite(greenPin,LOW);
digitalWrite(bluePin,LOW);  

}

if(myColor==“green”){

digitalWrite(redPin,HIGH);
digitalWrite(greenPin,LOW);
digitalWrite(bluePin,LOW);  

}

if(myColor==“blue”){

digitalWrite(redPin,LOW);
digitalWrite(greenPin,LOW);
digitalWrite(bluePin,HIGH);  

}

if(myColor==“off”){

digitalWrite(redPin,LOW);
digitalWrite(greenPin,LOW);
digitalWrite(bluePin,LOW);

}

Serial.println (myColor);
}

Make sure the line ending in Serial Monitor is set to “No line ending”. Otherwise the line ending characters end up in your input and don’t match the string constants.

The keyboard input is case-sensitive. “RED” doesn’t equal “red”.

thanks but I am aware. Appreciated the reply, however, thank you.

YES!!! thank you, I owe you a beer!