Logic change on search/replace

I must search and replace for '%' before continuing the other searches.
Otherwise, the pastebin doesn't come out correctly.