implemented skipWhitespace()