#[allow(dead_code)]
pub fn detect_separator(text: &str) -> char {
if text.contains('|') { return '|'; }
if text.contains('\t') { return '\t'; }
',' }
pub fn scrub(bytes: &[u8]) -> String {
String::from_utf8_lossy(bytes)
.replace('\u{feff}', "") .replace('\0', "") .replace("\r\n", "\n") .replace('\r', "\n") }