// 👋 ...👋 ... Assalamualaikum

Assalamualaikum 👋 ...👋 ...
.item-fourth
(while (search-forward FROM-STRING nil t)
What you probably want is a loop like this:
(replace-match TO-STRING nil t))
which will run faster and will not set the mark or print anything.
.item-half
.item-fourth
.item-half
.item-fourth
Assalamualaikum

Assalamualaikum

👋<<wave emoji
This function is usually the wrong thing to use in a Lisp program. What you probably want is a loop like this:
^1
^2
(while (search-forward FROM-STRING nil t)
^4
^a
^t
(replace-match TO-STRING nil t))
^w
vwaalaikumsalam 👋 Kelp UI 👋
Kelp UI
Kelp UI
vwaalaikumsalam
Kelp UI
Kelp UI
Kelp UI
Kelp UI
Kelp UI
Kelp UI
Kelp UI
👋 Kelp UI 👋
^1
^2
^3
^4
^a
^t
^f
^w

( ̄▽ ̄;)
👋 ...👋 ... Assalamualaikum
waalaikumsalam