trim function in Power Automate
The trim function will only remove the leading and trailing spaces from the string, not in between the characters.
Power Automate Syntax trim(text: string)
Note: We can also the trim function in power automate, to identify which column values in a SharePoint list have leading and/or trailing spaces.
Sign in to Power Automate to create a new power automate.
Use the Compose action and specify the below expression in the automation.
Power Automate
trim(' Ashish Goel ')
The output of the above power automate expression is ‘Ashish Goel’.