Merge: lib/core: introduce replace_first in text/string_search