Enhanced the Java client to send commands in a string.