A template letter earns its keep by being reused: the same welcome letter, booking confirmation or thank-you note goes out repeatedly, with only the recipient's name, the place and the date changing each time. The risk is never the typing. It is the one occurrence you miss, so a letter addressed to the new client still mentions the old client's city halfway down.

Swapping values by hand invites that miss, because names and places repeat in greetings, subject lines and sign-offs. This guide shows how to make the swaps with the free Find and Replace tool on Ovatly, which rewrites every occurrence in pasted text and reports how many replacements it made. It also covers the one situation that defeats a naive swap: two values that trade places.

Contents

  • Quick answer
  • What the tool changes, and what it counts
  • Why swap order matters when values trade places
  • How to swap names and places, step by step
  • Worked example: two offices trading places in one letter
  • One-way swaps and template placeholders
  • Limitations and alternatives
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

Work on a copy of the template, never the master. Paste the copy into Find and Replace, put the old name or place in the Find box and the new one in the Replace box, and run the pass. Read the replacement count and check it against the occurrences you expect. Repeat for each value that changes. If two values are trading places, never replace one directly with the other: send the first to a temporary placeholder, replace the second value with the first, then replace the placeholder with the second. Three passes, and nothing is overwritten.

What the tool changes, and what it counts

The tool works on text you paste in: it rewrites every occurrence of what you search for, not just the first one, and reports the exact replacement count when it finishes. That count is the feature that makes template work safe: it turns "I think I got them all" into a number you can check against the letter.

Matching is case-insensitive by default, which is what you want for names and places: a search finds the word whether it sits mid-sentence or capitalized at the start of a line. Three options refine the matching. Case sensitive requires the exact capitalization. Whole word only matches complete words, so a short name is not replaced inside a longer word that contains it. Regular expression mode matches patterns instead of fixed text, for jobs like reformatting dates or codes, with group references like $1, $2 and $& in the replacement. For names and places, plain mode with default settings is the right tool.

Why swap order matters when values trade places

A one-way swap is simple: the old value disappears and never comes back. A trade is different. Suppose a letter mentions two offices, Leeds and York, and this month they must be exchanged: everywhere Leeds appeared, York should appear, and the other way round.

Replace Leeds with York first and the letter has York in both sets of places, with no way to tell the originals from the converted ones. Replace York with Leeds next and everything becomes Leeds: the second pass cannot distinguish values that were there from the start from values the first pass created.

The fix is a placeholder: a temporary string that appears nowhere in the letter and means "the first value, waiting". Route Leeds to the placeholder, then York to Leeds, then the placeholder to York. This is a general editing technique, not a special feature of the tool; the tool's contribution is the replacement count after each pass, which proves each step moved the right occurrences.

How to swap names and places, step by step

  1. Copy the template letter and paste the copy into the Find and Replace tool. The master stays untouched.
  2. Type the old value in the Find box and the new value in the Replace box.
  3. Set the options: case sensitive and regular expression off, whole word only on if the value is short enough to appear inside other words.
  4. Read the match count, compare it with the occurrences you expect, and copy the result. Repeat for the next value, or the next step of a placeholder swap.

Worked example: two offices trading places in one letter

Take this letter, from a workshop that alternates between two studios:

"Dear Ms Carter, Thank you for hosting the workshop at our Leeds studio last month. The next session moves to our York studio: the York team will handle bookings while the Leeds team prepares the materials. Please send the signed form to the Leeds office, for the attention of the York coordinator. We look forward to seeing you in York."

Leeds appears 3 times, York 4 times. This month the roles reverse, so the two names trade places:

  1. Find "Leeds", replace with @@STUDIO@@. The tool reports 3 replacements, matching the count above, and the letter now contains no Leeds at all.
  2. Find "York", replace with "Leeds". The tool reports 4 replacements: the original Yorks, and only those, because the converted Leeds text is parked in the placeholder.
  3. Find @@STUDIO@@, replace with "York". The tool reports 3 replacements, and the swap is complete: last month's host is now York, the next session moves to Leeds, and every team and office reference follows.

The counts are the audit trail. If pass 1 had reported 2 instead of 3, another Leeds would be hiding somewhere, in a subject line or footer, and pass 2 would have wrongly converted it. Checking each number takes seconds and catches that before the letter goes out.

One-way swaps and template placeholders

Most template letters only need one-way swaps: this week's recipient, town and date replace last week's. Templates written with placeholder tokens make this cleaner still. If the master letter says [RECIPIENT] and [CITY] where the changing values go, each pass replaces a token that appears nowhere else in the text, so nothing is caught by accident, and the count tells you how many slots the template had. Save the result under the recipient's name; the master is ready for the next letter.

Limitations and alternatives

The tool works on pasted plain text, so it does not open your document file or preserve its formatting; the workflow is to paste the letter text in, make the swaps, copy the result back, and reapply any formatting the letter needs. It also cannot judge the letter itself: if the template names the wrong service, no pass will notice.

Whole word matching uses standard word boundaries, which work best with plain letters and digits, so a value containing punctuation deserves an extra read-through afterwards. An invalid regular expression shows a clear error and changes nothing, rather than failing silently, which matters only in regex mode; names and places never need it. For a single short note, typing the change by hand is faster; the tool earns its place when values repeat or trade places.

Common mistakes

  • Replacing directly when two values trade places. The second pass rewrites the first pass's work; route one value through a placeholder instead.
  • Editing the only copy of the template. One wrong pass saved over the master ruins every future letter. Work on a copy, and keep the original closed.
  • Ignoring a surprising count. A count that differs from your expectation means the text is not what you thought. Find out why before copying the result.
  • Catching a name inside other words. Turn on whole word only, or read the result carefully, when the value is brief.

FAQs

What happens if the new name also appears somewhere in the letter? A later pass cannot tell new occurrences apart from original ones, and will rewrite both. When two values trade places, send the first to a temporary placeholder, replace the second value, then replace the placeholder with the first value's new home.

How do I know every occurrence was changed? The tool reports the exact number of replacements after each pass. Compare it with the number of times you expect the old value to appear; a different count means something was missed or something extra was caught.

Can I delete every occurrence of a word? Yes. Leave the Replace box empty and every match is removed. Turn on whole word only if you do not want parts of longer words touched.

Does capitalization matter when I search for a name? Not by default. Matching is case-insensitive unless you turn on the case sensitive option, so a lowercase name still matches at the start of a sentence. Turn the option on only when the exact case is part of what you are looking for.

Is my text uploaded? No. Searching and replacing happen in your browser on your device.

Conclusion

A template letter stays trustworthy when every swap is total and verifiable: work on a copy, replace each old value in one pass, and let the replacement count confirm the changes match the letter you think you have. When two values trade places, the placeholder detour keeps the passes from overwriting each other. The Find and Replace tool handles the passes and the counting; the order you run them in is yours. For the option behind the trickiest of these passes, read Case-Sensitive Replace: When It Matters and When It Bites, and browse the rest of the Text and Writing Tools guides for more editing workflows.