read bytes and string in socket util tested