>>> import re >>> strs = "foo bar spam" >>> re.split(r' +', strs) ['foo', 'bar', 'spam']
split_string = a_string.split(" ")