def lstrip_max(string: str, characters: str=' ', max: int=1):
    """Works like ``string.lstrip()``, but will not strip more than ``max`` characters."""

    chars = list(characters)

    for i in range(max):
        if string[0] in chars:
            string = string[1:]
        else:
            break

    return string