Forum Discussion

viniciuscandido's avatar
viniciuscandido
New Contributor
3 years ago

aqString.Trim does not remove all spaces from the specified string

Hey everyone! ๐Ÿ‘‹ The function aqString.Trim() only removes leading and trailing spaces, if a given string has a whitespace within, this one is not removed.    Example of using Trim function: fun...
  • Kitt's avatar
    3 years ago

    That is what the Trim() method is designed to do, only remove leading or trailing spaces. Likewise, if you want to replace all spaces with nothing, you would you the Replace() method as you have discovered. There should be no issues with how your test performs.