pub fn check_or_remove_prefix<'a>(text: &'a str, prefix: &str) -> &'a str {
if text.starts_with(prefix) {
&text[prefix.len()..]
} else {
text
}
}
pub fn check_or_remove_suffix<'a>(text: &'a str, suffix: &str) -> &'a str {
if text.ends_with(suffix) {
&text[..(text.len() - suffix.len())]
} else {
text
}
}