Replace old variable values with new ones