How to reverse a string value in Salesforce? Biswajeet May 7, 2015 No Comments on How to reverse a string value in Salesforce? Sample Code: String str = 'biswajeet'; String revStr = str.reverse(); system.debug('Reversed string value is ' + revStr); Output: