pub fn substring_before(value: &str, pattern: &str) -> String
Get the substring before the first occurrence of a pattern.