pub fn motion_reduce(v: &str) -> String