View on StackOverflow You can use sta (string to array) pip install sta then >>> import sta >>> sta("some words on a list") ['some', 'words', 'on', 'a', 'list']