Documentation

Looking for something in particular?

StringNormalize

This function normalizes a supplied string in various ways, e.g., removing any leading or trailing whitespace or removing consecutive whitespace characters.

Format: StringNormalize(SourceString,trimlines)

Examples:

{StringNormalize("Extra space Extra space")}– Remove consecutive whitespace, e.g., “Extra space Extra space”

{StringNormalize("Carriage returnrnCarriage Return")}}– Replace carriage return and line feed with line feed, e.g., “Carriage return carriage Return.”

{StringNormalize(" leading and end space ")}– Remove leading and trailing whitespace, e.g., “leading and end space.”

Practice


Want to learn more about using this function in Provar? You can use the following sample test case to get started. Simply right-click to download StringNormalize.testcase and then drag and drop the test case into the test folder within the Navigator panel of Provar.

Note: Unzip/extract the compressed file before using it in Provar.

For more information, check out this course on University of Provar.


Feedback

Was this article helpful for you?
Documentation library

Trying to raise a case with our support team?

We use cookies to better understand how our website is used so we can tailor content for you. For more information about the different cookies we use please take a look at our Privacy Policy.

Scroll to Top