Hapus karakter ruang dari string di python

>>> "  hello  apple  ".replace(" ", "")
'helloapple'
Tan MH