pub fn term_filter(input: Cow<'_, str>) -> Cow<'_, str>