Fixed trim for IE8 compatibility