fix for trim in ie8