Add example for str replace() and MaybeOwned

  - for 3 implementations of into_maybe_owned()
  - is_slice()
  - is_owned()
auto merge of #15497 : jasonthompson/rust/docs/str3, r=cmr

  - for 3 implementations of into_maybe_owned()
  - is_slice()
  - is_owned()