Use characters rather than ascii values in token switch