I need to extract Tax ID as shown in picture 1 and I using the command that is shown in picture 2. However, during extraction an extra space is fetch as shown in picture 3. Can anyone suggest how to remove extra space.
You’re looking for the Trim method. You can then give it something like " Hello world " and get “Hello world” back without the leading or trailing space characters.’
Conversely, you can try to remove the space character when you’re selecting the Tax ID.
At that point, I wouldn’t use the Trim method. I would instead change how you are selecting. You can add the space that you’re trying to get rid of. Your code would look like this:
However, you may want to look at Regex as that would be a much cleaner way of pulling out that information. If you just want something that works for right now, what I gave above should do.