fn to_owned(&self) -> String {
        unsafe { String::from_utf8_unchecked(self.as_bytes().to_owned()) }
    }
Replaces first N matches of a pattern with another string.

`replacen` creates a new [`String`], and copies the data from this string slice into it.
While doing so, it attempts to find matches of a pattern. If it finds any, it
replaces them with the replacement string slice at most `count` times.

# Examples

Basic us
benchmarks/haystacks/code/rust-library.rs