auto-cut for string fields if they have length attribute