# string.insert()

Inserts a substring in a string after a specified character
position. If position = 0, prefixes the substring to the
string.

```
string.insert( substring=string, position=number )
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| substring | string | Yes | String to insert. |  |
| position | number | Yes | position in string after which to insert substring. |  |

# Examples

```cfml
	insertTest = "Lucee developer";
	writeoutput(insertTest.insert("core ",6));
```

# Categories

[Strings](../../../categories/string.md)

# See Also

[Insert()](../../functions/insert.md), [String](../string.md)