StringTrim
This function trims whitespace from a string.
Format: StringTrim(SourceString, TrimType)
Examples:
{StringTrim(" String ")}
– This will default to trimming both ends of the string, e.g., “String.
{StringTrim(" String ", LEADING)}
– This will remove white space at the beginning of the string, e.g. “String.”
{StringTrim(" String ", TRAILING)}
–This will remove white space from the end of the string, e.g., “ String.”
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 StringTrim.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.