detect single character