Jquery trim() function instead of javascript equivalent as it's not supported by IE8.
Merge pull request #30 from santhudr/master

Jquery $.trim() function instead of javascript equivalent for IE8 support