Activity Forums Salesforce® Discussions How to trim sapce between two strings and after/before a string in Salesforce?

  • Piyush

    Member
    November 19, 2019 at 9:21 am

    Hi Yogesh,

    You can use the following line to trim the space between the strings:

    string = str.replaceAll("\s+"," ");

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos