Replace vars.