Fix string substitution error in Target.edit (APPENG-2879)