def front_pad_string(string, length: int = 2, char: str = "0") -> str:
    """ Front pad a string with a certain char if it isn't already at least a given length long. """
    string = str(string)  # Cast whatever this is into a string.
    while len(string) < length:
        string = char + string
    return string