public String getCommand(String prefix) {
        String input = "";
        System.out.print(prefix);
        try {
            input = in.readLine();
        } catch (Exception e) 
        {
            System.err.println(e);
        }
        return input;
    }