fix trim for IE < 9. yay. my favorite.