Bug fix

Found a bug with checking for white space. Fixed.