Update name of variables in documents