padleft( length, pad )

Description:

Apply padding to the left side of a string to fill it out to a specified length.

Input:

String to pad.

Parameters:

length

Number of characters to pad out to. If the input string is already equal to or longer than this value then no padding will be added.

pad

Optional character to pad the string with. Defaults to a space.

Return:

The input string with padding applied.