How to "restructure " text line output ?
-
I am asking for ideas , not for code in particular.
Ideas on how to "restructure " the attached output to "shrink" so the irregular space between the strings can be adjusted and still have the last string ended at same location.I was thinking to get the average of the line - both strings - length , then retrieve the actual length of the last / second string . By searching for two or three consecutive spaces - from the end of of the line...
Then I got stuck what to do next...
Any better idea / help would be appreciated.

-
Idea 1. Split the strings on two or more spaces, put them in a two column model and display in a tree view with auto adjusting column widths and left/right alignment.
Idea 2. Switch to monospace font. Find the longest line and assume that as your number of characters in a line (lets call it X). For each line count the characters (lets call it Y), find a location of two or more spaces and insert (X-Y) spaces.