Brilliant! we're on the exact same page!
Now I implemented your suggestions in my script but I am not entirely sure of the logic and syntax of the first string extractor...
I understand the whitespace in the command above is the delimiter. I tried substituting the space for a plus sign, and added a + sign somewhere in the string to search, and I got everything from the start top the + sign...
But if I wanted to extract the 3rd string, how would you do this? Using whitespaces as delimiters would work. Lets say for
StringA 123 4567 4568 RandomStringA StringB RandomStringB
I want to return what is between the 4th & 5th space, i.e. the "RandomStringA"
Thanks, I appreciate your mentoring