Arduino Text Scrolling on 16x02 I2c on NodeMcu (esp8266-12)

Your variable line is already a string:

String line = client.readStringUntil('\r');

Hve fun with it.