def check_name_length(feature_name):
    """ check the maximum name length for file geodatabase feature classes,
        if exceed, 160 characters would be returned """
    if len(feature_name) > 160:
        feature_name = feature_name[:160]
    return feature_name