Can you explain the concept of boundary value analysis and how you would apply it to a system that processes barcode scans of varying lengths?