fix string size check and assert condition

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