refactor code in MVM_socket_receive_string and MVM_file_read_fhs