# Scramble String

> Scramble the order of characters in a string.

- ID: `scramble_string`
- Type: Block
- Category: [Strings](https://inventor.bot/docs/reference/blocks/strings.md)

- Value block: it can be used directly inside expressions, e.g. `"Result: " + scramble_string(Args{...})`.

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `text` | yes | String to scramble. | e.g. `"hello"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `scrambled_string` | String with characters shuffled. | e.g. `"lleoh"` |

**Example**

```go
scrambleString := scramble_string(Args{text: "hello"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Scrambled String: " + scrambleString,
})
```