String name;
void setup() 
{
  Serial.begin(9600);
}
void loop()
 {
  Serial.println("Please enter your name:");
  while (!Serial.available());
  name = Serial.readString();
  Serial.print("Hello ");
  Serial.println(name);
}