Get text output

Hi I am relatively new to uipath,
My problem is I have a get text output and next I am doing some comparison with respect to a word …even though by look both are same it still goes to else part

Any help would be much appreciated

Hi @Manikya_Mutu

Welcome to community

So basically this might happen if there are unnecessary spaces in the string …either on end or start

So I would suggest you to go with str.trim

Basically trim your output before comparison
So it Eliminates spaces

1 Like

Just out of curiosity, how to check if it has any extra spaces?

So put a break point after get text and in immediate panel check string length

So u will understand what exactly is extra

1 Like

Thank you so much @nikhil.girish

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.