What is the Trim Function?
The trim
function in Power Automate is used to remove leading and trailing whitespace characters from a string. This is especially useful when dealing with data input from users, importing data from external sources, or ensuring that text data conforms to a specific format.
In this blog you will learn how to trim a variable in Power Automate. You will learn how to change ‘ Hello, World!’ to ‘Hello, World!’
Step 1: Create a new instant cloud flow with a manual trigger. Use this link “make.powerautomate.com”

Step 2: Add ‘Initialize variable’ action card with the following details:

Step 3: Add a compose action card and fill the input field with the following expression:
trim(variables('Text'))

Step 4: Save and Test Flow. The results of the flow should be as shown below.
