# Trim Text

Source: [https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/text-activities/trim-text/](https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/text-activities/trim-text/)
Product: Virto Workflow Automation Web Part
Updated: 2026-08-12


This activity allows removing white-space characters from the text and store result in variable.

![Trim Text workflow activity that removes white-space characters and stores the result in a variable](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/trim_text_1.png)

The activity can remove leading, trailing and leading and trailing white-space characters.

## **SharePoint Workflow Designer Phrase**

Removes leading and trailing white-space characters from this text and store in Variable: variable.![SharePoint Workflow Designer phrase for the Trim Text activity removing leading and trailing white-space](https://img-docs.virtosoftware.com/wp-content/uploads/2024/11/trim_text_2.png)

**Parameters**


| Parameter | Description |
|---|---|
| leading and trailing | Trim mode. Supported: leading and trailing, only leading and only trailing modes |
| this text | Original text |
| variable | This activity will place result into an output variable |


![Trim Text activity parameters configured with the trim mode, source text, and output variable](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/trim_text_3.png)
