substValue function

Replace a variable by a value in a set of edits.