Improved reader for ignoring space and new line.