Checks if the character is a punctuation character (printable, not alphanumeric, not space).
bool ispunct(String c) => isprint(c) && !isalnum(c) && !isspace(c);