Less C-like and conveniently fixes a build issue caused by strcmp not being declared for some reason. Converting to std::string is safe because the argument count is checked every time so the char* cannot be a nullptr.