Moved text substitution step to Dialog commands.