Issues Ethernet Shield Telnet?

I am trying to use the Ethernet Shield to telnet into a device and issue a command when I just use telnet on my computer and telnet to the device I am trying to control and send the following C412|tune and press enter the device does what I am expecting but when I use my Arduino program it fails to work as expected. I have even checked the program using a tcp packet monitoring tool and it seems to be doing what it should but not giving the desired result so my question is what is the difference between using telnet and typing C412|tune vs this program below

#include <SPI.h>
#include <Ethernet.h>

byte mac = {0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xAA };
IPAddress ip(10,0,0,177);
IPAddress server(10,0,0,51);
EthernetClient client;
String Output0 = “”;
String Delimiter= “|”;
String Start = “C”;
String Cmd = “tune”;
int Loop = 0;

void setup() {
pinMode(53, OUTPUT);
Ethernet.begin(mac, ip);
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println(“connecting…”);
delay(1000);
while (Loop == 0)
{
client.connect(server, 42);
Serial.println(“Server connection failed_” + String (client.connected(), DEC));
delay (1000);
if (client.connected())
{
Loop = 1;
}
}
Serial.println(“Server connection OK”);
delay (100);
}

void loop() {
Output0 = String(Start + (“412”) + Delimiter + Cmd );
Serial.println(Output0);
client.println(Output0);
delay(1000);
}