pub fn pad_char(s: &str, n: usize, c: char) -> Result<String, &str>
Left-pads the string with the supplied character.