def trim_left(value, max_length):
    """ Trim the left side of the string so that the length is at most
    max_length.

    """
    str_value = str(value)
    return str_value[-max_length:len(str_value)]