You could `std::stoi`, but for something as simple as this I think a string comparison is fine.