fix string size check and assert condition

1. std::string::size() return size_t (is never < 0)
2. "event must be larger than 0" and 'event' has unsigned int type