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 right padded string with the given size and string, or original string if no padding is necessary
Returns the right padded string with the given size and string, or original string if no padding is necessary