# Remap String

> Remap or replace values in a string using a set of original-to-replacement pairs.

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `input` | yes | The string to remap or replace within. | e.g. `"hello"` |
| `mode` |  | Remap matches the entire input; Replace finds and replaces substrings. | `"Remap (exact match)"`, `"Replace (find & replace)"` |
| `case_sensitive` |  | Whether matching is case sensitive. | `"True"`, `"False"` |
| `fallback` |  | Returned if no match in remap mode. Leave blank to return the original input. |  |
| `original_1` |  | Value to match against. |  |
| `replacement_1` |  | Value to replace with. |  |
| `original_2` |  | Value to match against. |  |
| `replacement_2` |  | Value to replace with. |  |
| `original_3` |  | Value to match against. |  |
| `replacement_3` |  | Value to replace with. |  |
| `original_4` |  | Value to match against. |  |
| `replacement_4` |  | Value to replace with. |  |
| `original_5` |  | Value to match against. |  |
| `replacement_5` |  | Value to replace with. |  |
| `original_6` |  | Value to match against. |  |
| `replacement_6` |  | Value to replace with. |  |
| `original_7` |  | Value to match against. |  |
| `replacement_7` |  | Value to replace with. |  |
| `original_8` |  | Value to match against. |  |
| `replacement_8` |  | Value to replace with. |  |
| `original_9` |  | Value to match against. |  |
| `replacement_9` |  | Value to replace with. |  |
| `original_10` |  | Value to match against. |  |
| `replacement_10` |  | Value to replace with. |  |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `result` | The remapped or replaced string. |  |
| `matched` | Whether any match was found. | e.g. `"false"` |

**Example**

```go
remapString := remap_string(Args{input: "hello"})
send_text_message(Args{
	channel_id:      trigger.channel_id,
	message_content: "Result: " + remapString.result,
})
```