Imports SystemClass Sample Public Shared Sub Main() Dim str As String str = "test" Console.WriteLine(str.PadLeft(15)) Console.WriteLine(str.PadLeft(5)) End Sub 'MainEnd Class 'Sample