updated barcode trimmer to handle CCS