Fixed bug in doScript

Found a bug with checking for white space. Fixed.
Merge pull request #60 from dixonj30/master

Bug fix