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 Apps / Invisible characters b...
Power Apps
Answered

Invisible characters being added to text

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hey, so I have some automatic correction on an address box which seemingly works but some random invisible characters are appearing?

The field containing - "19 Lacaster Road,
Bfirmi Fng Ham
City
Road England" is 50 characters long but after going through the process to auto capitalize -

Set(r52, Trim(Concat(Split(DataCardValue52.Text,""),If(IsMatch(Result, "(\w|,|\s)"),If(IsMatch(Result, "\s") && !(Result = " "), "//////////", Result))))); Set(r52, Trim(Concat(Split(r52," "),Concatenate(Upper(Left(Result,1)),Lower(Mid(Result,2)))," "))); Set(r52, Trim(Concat(Split(r52,"//////////"),Concatenate(Upper(Left(Result,1)),Mid(Result,2)),"
"))); Reset(DataCardValue52)

It comes out with the same thing but 53 characters long? (when a lowercase version is entered a correct capitalized version is returned but with the 3 invisible characters still)

if I delete a character and type it back in or add a character then delete the added character it goes back to 50 characters automatically.

 

The invisible characters are throwing off my validation which is frustrating since this is one of the last few things in a large project.

Anyone able to help?

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Anonymous 

     

    In case you are looking for auto-capitalize the text passed, you can directly use the "Proper" function to do so:

    Set(r52, Proper(DataCardValue52.Text)); Reset(DataCardValue52)

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @yashag2255 

    So... the fact that after all my effort and attempts at research just got simplified by Proper() makes me love and hate you 😂

    I'm actually so gutted that I'm gonna check it tomorrow and not today. I've even seen both Upper and Lower but for some annoying reason they were separate to the docs i looked at.............

    I've never been so upset to be perfectly helped.

    I'll check it tomorrow and mark it then or ask a question if it doesn't completely fix things.

    Thanks,

    @Anonymous 

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 839

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 412

Last 30 days Overall leaderboard