---
url: /flow/guide/scripting-reference/functions/string/insert.md
---

# Insert

## Declaration

`procedure Insert(Substr: string; var Dest: string; Index: Integer);`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Insert('two ','one three', 5); //returns 'one two three'
 end;
```

## Description

Merges two strings together. Substr is merged into Dest at the position given by Index.
