WOW!
1.2 seconds. That's fast! I was unaware of std::strtok, but it certainly performs well for this. Thanks. Also, I thought my C++ and Python code did the same thing how exactly do they differ?