If your using a barcode scanner you got from your library services vendor or similar provider, your scanner has probably been programmed to add the trailing carriage return so that it works with automated circulation. Most barcode scanners can be reprogrammed to eliminate the trailing carriage return or use an alternative end character like TAB. If you look up the user guide for the barcode scanner you are trying to use, they usually supply programming sheets that you can print and scan. it's usually similar to the following process:
scan special barcode to enter programming mode
scan programming option 1
scan programming option 2
... etc
scan barcode to exit programming mode.
on my Symbol 6707 (which is probably way overkill for what you're doing) the default is to simply send the data with no trailing characters. The programming for this advanced scanner is in many cases even more simple than what I've outlined above.
I could change that scanner to work with automated circulation by programming a data suffix (carriage return), and then telling the scanner to transmit the suffix with the data. the barcodes to do so are right in the manual (see below) on page 64 and 65...
If I wanted to tell the scanner to no longer send the carriage return, so I could use it with google forms, I could just scan the single programming barcode on page 65 to tell the scanner to start sending only the data, instead of the data and prefix.
It's actually easier than it sounds on most scanners... if you send me the make and model, I can probably put together a couple of programming sheets that you could scan to turn the carriage return on or off if it's actually an option on that particular scanner
6707 manual: