Encountering unset variables is common when scripting. Often your script needs to ask questions about values before using ...
Click "Format" next to the Replace With field, and select the correct number format in the Number tab (in this case, ...