The newline character is probably part the value as reported by the device (which would mean it’s a client bug). Can you do a packet capture and see what the GPV response looks like?
Yes, it can be. It’s TELRAD CPE, it’s ok for me if I know that it’s because of the Vendor. I can extract only number in a script, so it’s solved for me for now.