Activity › Forums › Salesforce® Discussions › How trim function work in Salesforce? Salesforce® Discussions How trim function work in Salesforce? Posted by Marziya on May 20, 2020 at 1:58 PM How trim function work in Salesforce? Shweta replied 6 years ago 2 Members · 1 Reply 1 Reply Shweta Member May 20, 2020 at 2:40 PM Trim function removes the specified substring from the beginning and end of a string. this function is used to remove leading and trailing spaces, do not specify a substring. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me