re-implemented MVM_socket_receive_string