Fixed with receivedText in TCP only gives 998 characters in a string. Need more fix after 4000 chars.