JavaScript String.trim()

IE 8 does not support String.trim(). To trim a string you can use a polyfill.