public static String[] getKeyandValue(String line) {
        String[] words = Tools.readWords(line);
        if (words.length==0 || words[0].charAt(0)==commentChar) {
            return new String[] {"",""};
        }
        String key, value="";
        if (words[0].contains("=")) {
            String[] subwords = words[0].split("=",2);
            key = subwords[0];
            if (subwords.length>1) {
                value = subwords[1];
            }
            else if (words.length>1) {
                value = words[1];
            }
        }
        else {
            key = words[0];
            if (words.length>1) {
                if (words[1].equals("=") && words.length>2) {
                    value = words[2];
                } else {
                    if (words[1].charAt(0)=='=') {
                        value = words[1].substring(1);
                    }
                }
            }
        }
        key = key.toUpperCase();
        return new String[] {key, value};
    } //getKeyandValue