This extension splits the string by a given separator and returns an array with trimmed items. It uses the **trim()** method, which is a JavaScript function to remove white space from both ends of a string, or another JavaScript function designed to trim white space from a string.