Bug fix with trim method in StringUtil