.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