#include <algorithm> any_of(str.begin(), str.end(), [](const char& c) -> bool { return !isalnum(c); });