private static void browseTranslateRules() {
        handler.listTranslateRules();

        System.out.print("Enter option (new, remove, main, or quit): ");
        String userInput = readString();

        while ((!(userInput.equalsIgnoreCase("quit")))
                && (state == CONTEXT_TRANSLATERULES)) {
            if (userInput == "quit") {
                state = CONTEXT_EXIT;
            } else if (userInput.equalsIgnoreCase("main")) {
                System.out.println(MENU_MAIN);
                state = CONTEXT_MAIN;
            } else if (userInput.equalsIgnoreCase("list")) {
                handler.listTranslateRules();
            } else {
                String[] tokens = userInput.split(" ", 2);
                if (tokens.length == 2) {
                    if (tokens[0].equalsIgnoreCase("new")) {
                        System.out.print("Enter the rule string: ");
                        String ruleString = readString();
                        handler.rulesNew(tokens[1], ruleString);
                    } else if (tokens[0].equalsIgnoreCase("remove")) {
                        handler.rulesDelete(tokens[1]);
                    } else {
                        System.out.println("Input not recognised");
                    }
                } else {
                    System.out.println("Input not recognised");
                }
            }

            System.out.print("Enter option (new, remove, main, or quit): ");
            userInput = readString();
        }
    }