def padded_print(field_name, value):
    """Pad a string with leading spaces to be the same length as field_name."""
    offset = len(field_name) - len(str(value))
    if offset > 0:
        return (' ' * offset) + str(value)
    return str(value)