Efficiently split lines by whitespace, while handling the backslash escape sequences in Rust-like string format.