Tried a different number of combinations, none to avail.
Basically this is the string of numbers that I have:
20101002 100224 1 1044 45508 1001 1002 1003 1004 1005 1006
Output I'm after:
20101002 100224 1 1044 45508 1001 1002 1003 1004 1005 1006
Basically all whitespace before and after the last number have to be trimmed. On top of that there should only be one whitespace between the numbers.
I should add that the code I currently have is as follows and only deals with the whitespace at the start and end of the string:
row = line.strip().split(' ')
Any help is much appreciated, thanks!