bug fix for IE 8: trim -> replace / version