converted socket send data to string