Use if-else if blocks instead of switch, because switch doesn't support strings. If you want to use switch you can create enumeration for all strings you need and map strings to this enumeration via Trie and switch mapped values which you can get via TrieGetCell.