add chosen-middle-truncate CSS class to spans that have been middle-truncated