private static String getCatenatedString(String[] temp) {
        String tmp = "";
        for (int i = 0; i < temp.length; i++) {
            tmp += temp[i] + " ";
        }
        return tmp;
    }