Arduino ethernet BOARD example

o sorry i missed a piece of the code here is it complete

  while(client.connected() && !client.available()) delay(1); //waits for data
  while (client.connected() || client.available()) { //connected or data available
    char c = client.read(); //gets byte from ethernet buffer

    ///////
    // add incoming byte to end of line:
    currentLine += c; 

    // if you get a newline, clear the line:
    if (c == '\n') {
      currentLine = "";
    } 
    // if the current line ends with <text>, it will
    // be followed by the tweet:
    if ( currentLine.endsWith("<name>")) {
      // tweet is beginning. Clear the tweet string:
      readingName = true; 
      name = "";
    }
    // if you're currently reading the bytes of a tweet,
    // add them to the tweet String:
    if (readingName) {
      if (c != '<') {
        name += c;
      } 
      else {
        // if you got a "<" character,
        // you've reached the end of the tweet:
        readingName = false;
        Serial.println(name);

      }
    }

  }

but the problem is that it returns in the beginning of the string the last character of the separator

and with

Serial.println(name);

i got it on the screen
but if i do

lcd.println(name);

it is not working...
why? is it because its a string?