Change trim method.

Use QString::simplified() instead of QString::trimed().