Fix saving variables, also keep string around.