How to reverse a string in Salesforce? May 7, 2015June 9, 2022InfallibleTechie Admin Sample Code: String str = ‘abc’; String revStr = str.reverse(); system.debug(‘Reversed string is ‘ + revStr); Output: Cheers!!!