Speed up whitespace handling