pub fn clip_material(text: &str, head: usize, tail: usize) -> String
text cut to its first head and last tail characters, with a marker where the middle was, when it is longer than both together.
text
head
tail