fix ie8 not support String.trim function