Extracting Characters

To determine the number of characters scraped from a website in an “ExtractedText” String variable, excluding leading and trailing white-space characters, what should a developer use?

A. ExtractedText.Length

B. ExtractedText.Trim.Length

C. ExtractedText.Chars

D. ExtractedText.Trim.Chars

Hi guys,
I choose C,please correct me.
Thanks in advance

@Latifa,

Correct answer is B. ExtractedText.Trim.Length

Explanation:
Trim removes the leading and trailing spaces from String
Length gives the number of characters

You can try this in Studio.

Thanks,
Ashok :slight_smile:

1 Like

Some further reading here :slight_smile:

1 Like

@ashokkarale thank you so much

1 Like

@Steven_McKeering thank you for sharing this.

1 Like

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