trim fix for IE8