pub fn str_replace_once(haystack: &str, find: &str, replace: &str) -> String
strReplace(str, find, replace) – JS version used String.replace with first occurrence. We replicate first occurrence behavior.