Instead of undoing the scope, add a new string variable