Optionaltext: string | null
The source string to inspect
Optionalsize: number
The size to pad to
Optionalpad: string | null
The target string to fill, default is space
the left padded string with the given size and string, or original string if no padding is necessary
Returns the left padded string with the given size and string, or original string if no padding is necessary