I was chasing a protocol issue in some software. I was receiving ASCII serial data and applied the TRIM function to the received packet. I discovered that not only were the Trailing spaces removed from the data (expected) but it also stripped the trailing character (03) being an ETX in ASCII. This caused me problems with decoding the rest of the ASCII data packet.
I haven't done further testing to see if it also trims other non-visible characters in the ASCII set, but be aware, it's not just trimming spaces as the function's description suggests.
I haven't done further testing to see if it also trims other non-visible characters in the ASCII set, but be aware, it's not just trimming spaces as the function's description suggests.