pub fn arrayunpropagate(text: &str, separator: char) -> Result<String>
Replaces consecutive duplicates with empty elements.