Improved whitespace handling for ASCII files

Some files seem to add random bits of whitespace