Is this what you wanted, or did you want it to detect the space and split the text at the closest space to the middle of the string?
Yeah, that was the difficult part - split at the space closest to the middle.
Although, for his purposes your solution may very well work. I'll mention it to him
The challenge still stands!