Replaced stoi and to_string to work on lab machine