When my barcode scanner scans a code, it adds ] to the beggining and [ to the end. How can I change this?
Unfortunately, it's a barcode scanner setup parameter and varies by the particular barcode reader. You will need the documentation / SDK for your barcode scanner. Many barcode scanners can setup the leading/trailing character just by scanning a setup barcode.