readStringUntil()

readStringUntil() reads characters from the serial buffer into a String. The function terminates if it times out (see setTimeout()).
Serial.readStringUntil(terminator)

terminator: the character to search for. Allowed data types: char.

The entire String read from the serial buffer, up to the terminator character

The terminator character is discarded from the serial buffer.