You might be able to use variables without scripting, but I think you'd be best off using a script, since then it is much easier to load and save variables and, more importantly, you can show a single dialog that asks for both the Find and Replace strings at once.