Notes
In Apex, the trim()
method is used to return a copy of the string that no longer contains any leading or trailing white space characters.
Here's an example:
String s1 = ' Salesforce ';
String trimmed = s1.trim();
system.debug(trimmed);
Output: Salesforce
Video
Video does not exists.