Removing trim() call to support IE 8
Merging in ie8 trim fix