Let's only run `inreplace` if the string actually exists instead.