Problem with String.startsWith functions

Hi there.

I am facing problems with the .startsWith functions

These are my codes:

void setup(){
Serial.begin(9600);
String apple = "doctors hate me";

if (apple.startsWith="doctors"){
Serial.println(apple);
}

}

void loop(){}

Problem:
-the .startsWith does not turn orange in the Arduino IDE which surely is an indication of trouble.
-i get the error message of "invalid use of member (did you forget the '&'?)" at that line of code.

Do i need to initialise any libraries or update anything for this to work?

I am using Arduino 1.0.6 to go with Arduino micro

if (apple.startsWith="doctors"){

This looks wrong.

Check the definition of the startsWith( ) function of the String class.

The startsWith function requires a string argument and returns true or false.

if ( apple.startsWith( "doctors" ) )
{
   //  do something
}

Also, any test for equality inside an if( ) uses double == .

I suggest that instead of blundering around aimlessly using random keystrokes, you get hold of an elementary C/C++ programming book and read it.