# Repeat String

> Repeat a string a specified number of times.

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

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

**Inputs**

| Name | Required | Description | Value |
| --- | --- | --- | --- |
| `text` | yes | String to repeat. | e.g. `"ha"` |
| `count` | yes | Number of times to repeat the string. | e.g. `"3"` |

**Outputs**

| Name | Description | Value |
| --- | --- | --- |
| `string` | Repeated string. | e.g. `"hahaha"` |

**Example**

```go
stringRepeat := string_repeat(Args{text: "ha", count: 3})
send_text_message(Args{channel_id: trigger.channel_id, message_content: "String: " + stringRepeat})
```