IE 8 compatibility, lacks native trim() in String
Merge pull request #43 from smoorhouse11/master

IE 8 string compatibility