No need to use variables here, and if you do, make sure you use /var instead of /set so they are automatically unset after the command is executed.