Get command from serial

Did you possibly mean

  if (command == a){
  Serial.println("received-a");
  command = "0";
  }