public String sendToServer(String str) throws IOException {
        if (client_socket != null) {
            try {
                os.println(str);
                String line = is.readLine();
                return line;
            } catch (SocketException e) {
                return "connection problem...";
            }
        }
        return str;
    }