in reply to Capturing Space with Split

Hello Gavin and welcome to the monastery!

In your previous questions, you were already given helpfull hints, so maybe you can tell us more about how those responses do not work for you. Please read How (not) to ask a question and supply an explanation what you expect the code to do, your input data, and the output you get from it.

Please also refer to your earlier questions instead of posting a new question which is very similar to the questions you already posted.