Replace switch with array for token names.