free command structure after execution
optimize strlen() call