() As TextSupported for all project types and targets.
Trims whitespace, as defined in the Unicode standard, from end of the text. If the value is empty or consists entirely of whitespace, an empty Text is returned.
Removes ending white space:
Dim t As Text = " Hello, World! "
t = t.TrimRight ' t = " Hello, World!"