Please enable JavaScript
removeEnd() can be used to remove the last character from a String in Salesforce Apex. Blog Post: https://www.infallibletechie.com/2014/03/how-to-remove-last-character-from.html