k,thanks all. l=map(lambda x: '%02x' %ord(x),d) s=string.join(l,sep='') PS#. Endedup learning little bit of Lambda functions. :-) Scott David Daniels <<< Thanks for your wisdom about the "spaces". Its a 3 liner code-snippet!