Changed throwed exception in switch-case block, now shows unacceptable token type