Use jQuery trim() to support IE7&8