Obcięte przestrzenie w Pythonie

s = '  Hello  World   From Pankaj \t\n\r\tHi There  '
>>> s.strip()
'Hello  World   From Pankaj \t\n\r\tHi There'
>>> s.replace(" ", "")
'HelloWorldFromPankaj\t\n\r\tHiThere'
>>> " ".join(s.split())
'Hello World From Pankaj Hi There'
>>> import string
>>> s.translate({ord(c): None for c in string.whitespace})
'HelloWorldFromPankajHiThere'
SOURJAYA DAS