Pads a string to the given length len by inserting whitespaces from the left.

Pads a string to the given length len by inserting the character pad_char from the left.