def pad_str(s: str, pad: str = '0', length: int = 10) -> str:
    """
    Prepends a string to a desired length
    @pad - the charater to prepend the string with
    @length - the total length desired
    """
    while len(s) < length:
        s = pad + s
    return s