Hi,
please use a better headline, which describes your problem better.
Coming to your problem, the trim()-method calls the substring()-method, which creates a new string object with the
new keyword. So even if we have two strings with the same "value", we have two different objects. And because the "==" operator returns false, if the objects are different, you have your answer.
Check also this
thread:
General-problems
cheers
Bob