# string.listItemTrim()

Removes all the white space surrounding each element, returning back the new list

```
string.listItemTrim( delimiters=string, includeEmptyFields=boolean )
```

**Returns:** string

# Arguments

| Argument | Type | Required | Description | Default |
|----------|------|----------|-------------|---------|
| delimiters | string | No | Characters that separate list elements. The default value is comma. *Alias: delimiter* |  |
| includeEmptyFields | boolean | No | if set to true, empty values are included as well |  |

# Examples

```cfml
strList=",,,,I,,love,,,,,lucee,,";
writeDump(strList.listItemTrim());
```

# Categories

[Strings](../../../categories/string.md), [Lists](../../../categories/list.md)

# See Also

[ListItemTrim()](../../functions/listitemtrim.md), [String](../string.md)