def convert(value, row):
    '''truncate the achgdetx to 128 characters unless we are dealing with ky region'''
    return key_as_str(row['achgdetx'])[:128] if key_as_str(row['rapstatex']) != 'ky' else key_as_str(row['achgdetx'])