Kamus of Kadizhar wrote: > I have the following line: > > remoteMD5hash = Socket.recv(256) > > But what I really want is remoteMD5hash.strip() > > What's the best way to say that on one line? > > remoteKD5hash = string.strip(Socket.recv(256)) ? > > Or something better? remoteMD5hash = Socket.recv(256).strip() Peter