How can I split a string but still maintain the space?

The code I shared correctly displays what I would expect. What is the input string and the desired outcome?