Update code for remplaceVars method after analyse by scrutinizer.