switch count digits, white space, others