When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.
Thanks in advance
If I got it right you you use -split
to split the input string at a certain character. In this case you could split it on the space character.
There might be a better of achieving what you need. You may elaborate a little more detailed what you want to do … the bigger picture …