Dim firstword as String = "First"
Dim secondword as String = "Second"
Do Until firstword.Length = 25
firstword = firstword & chr(32)
Loop
TextWriter1.WriteLine(firstword & secondword)
If you call this type of routine a lot, I would suggest using StringBuilder instead of & to create your new string. Since strings are immutable, each & creates a new string. It can wreak havoc on memory consumption and the garbage collector.
Dim firstword as String = "First"
Dim secondword as String = "Second"
Do Until firstword.Length = 25
firstword = firstword & chr(32)
Loop
TextWriter1.WriteLine(firstword & secondword)
Dim Leaf As String = "Leaf"
Dim green As String = "Green"
Dim space As String
For i = 1 To 25 - Leaf.Length
space = space & Chr(32)
Next
Log($"${Leaf}${space}${green}"$)
Private Sub Button1_Click
Dim Leaf As String = "Leaf"
Dim green As String = "Green"
Log($"${Leaf}${Repeat(Chr(32), 25-Leaf.Length)}${green}"$)
End Sub
Private Sub Repeat(c As Char, n As Int) As String
Dim Result As String
For i = 1 To n
Result = Result & c
Next
Return Result
End Sub
Another way: you define a costant string which is made by 25 chars (spaces, underscoees, whatever).
Then you simply concatenate your first word with a properly calculated substring of the costant string and finally your second word.
Smart strings ss in post #5 are even better than concatenation