Tokenization of switch