a = " yo! " b = a.strip() # this will remove the white spaces that are leading and trailing
sentence = ' hello apple ' sentence.strip() >>> 'hello apple'