Use isspace(c) || ispunct(c) instead of a custom list