Whitespace error correction