`string.trim()` isn't supported in old browsers like ie <=8 so I guess we will need a polyfill here. There is a sample [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim)