IE8 does not have a string.trim()-function, so use regex..
Merge pull request #1370 from mluto/fix-load-message-IE8

Fixed message-sending in IE8