web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trim text is not delet...
Power Automate
Answered

Trim text is not deleting the space

(0) ShareShare
ReportReport
Posted on by 122

Hello again,

I am using the "text trim" function but it is not removing the space from a text obtained by OCR. Any idea about the error?

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Can you share some screenshots of your flow and the text you want to trim?

  • BLabat83 Profile Picture
    122 on at

    Sure!! Sorry but my code is in spanish 🙂 

     

    This is the code: I am extracting information with OCR to the variable OCRServeIndicator and then I Am using the function Trim to find and delete all the spaces in the variable

    Código.JPG

     

    This is de code in the Trim function:

    Trim.JPG

     

    And this is the result of the variables:

     

    Resultado.JPG

     

    You can see that there is a space between the S and the V

     

    Thanks again! 

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Trim text does not remove whitespaces from everywhere in the text. It is only used to remove whitespaces from the start and/or the end of the end of the text.

    If you want to remove whitespaces from inside of your text, use Replace text instead. Use %" "% as the text to be replaced and %""% as the text to replace with. This will replace all whitespaces with nothing.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • BLabat83 Profile Picture
    122 on at

    woooow!!! thanks again @Agnius it works perfectly. I've tried before but not using the %. Thanks again!!! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 889

#2
Valantis Profile Picture

Valantis 830

#3
Haque Profile Picture

Haque 505

Last 30 days Overall leaderboard