def __replace_callback_with_string(self, slack_message, block_id, message_string):
        """
        Replace a specific block in a Slack message with a given string while preserving other blocks.

        Args:
            slack_message (dict): The payload received from Slack.
            block_id (str): The ID of the block to replace.
            message_string (str): The text to replace the block content with.
        """
        try:
            # Extract required fields
            channel_id = slack_message.get("channel", {}).get("id")
            message_ts = slack_message.get("container", {}).get("message_ts")
            blocks = slack_message.get("message", {}).get("blocks", [])

            # Validate required fields
            if not channel_id or not message_ts or not blocks:
                raise ValueError("Missing required fields: channel_id, message_ts, or blocks.")

            # Update the specific block
            for i, block in enumerate(blocks):
                if block.get("block_id") == block_id:
                    blocks[i] = {
                        "type": "section",
                        "block_id": block_id,
                        "text": {
                            "type": "mrkdwn",
                            "text": message_string
                        }
                    }
                    break

            # Call the shorter update function
            return self.slack_sender.update_slack_message(
                channel=channel_id,
                ts=message_ts,
                blocks=blocks,
                text=message_string
            )

        except Exception as e:
            logging.exception(f"Error updating Slack message: {e}")

        Replace a specific block in a Slack message with a given string while preserving other blocks.

        Args:
            slack_message (dict): The payload received from Slack.
            block_id (str): The ID of the block to replace.
            message_string (str): The text to replace the block content with.
        
src/robusta/core/sinks/slack/slack_sink.py