How to left pad a string with spaces

Hi,

there some different possibilities to solve it, here’s one quick try as proposal from my side.

Before:

After:

And here’s the sample task, of course this could / should be wrapped into a library:
StrTest.zip (1.3 KB)

Best regards!