There is nothing that touches the data
Where is the data being contained? Is it all in one String or in multiple places?
Can you document where the data is being lost?
For example print the length of the data when first acquired.
Then print its length as it is passed.
and again print its length when it is received.
The print out should show what you are talking about if the starting length is greater than the length at the end.