try to rewrite WinPollster with build-in ctype