LabVIEW, 3 or 35 LabVIEW Primitives
findsFinds lines until none are left, then calculates how many spaces to add and puts everything together.
alternativelyAlternatively you could use the build inbuilt-in center alignementalignment on string indicators, it kinda does feel like cheating though.