I found a ticket in our problem tracker that one of the clients reports an error that some texts are incomplete! We have a program for converting text from one old system (IBM AS400) to a modern one. I tracked it and discovered unknown behavior in my code.
First, let's see:

As you can see, before the first space (char32) there are two char, but when I delete Trim(), the result:

Yes, Trim()removes char160 from the beginning! What happened, what Trim()works more than necessary?
Note. both pictures are recorded in the same test state.
source
share