Removed trim method that was breaking IE 7 and 8