def file_number(number, string_length):
    """Generate number strings with leading zeros so that numerical and string order coincide"""
    number_to_string = str(number+1)
    length = len(number_to_string)
    final_name = '0'*(string_length-length) + number_to_string
    return final_name