Optimization for parsing white space