Replaces the selected string part with %s and moves it into a new format function argument.