#include <cctype> and just use the standard function for that?