Fixed skipWhitespace

added the check to skip over tabs as well