The effect is to padd s to the left with spaces to bring the total length of the
string to the length specified by the second argument of the function. If the
third argument is present, then this string is repeated to the left to fill up the
padded string.
The function rpad has a similar syntax; however, the padding is done at the
right of s.