barcode scan: better filter for manual input