Added Trim method to Whitespace class