(vl-string-trim characters string)
The vl-string-trim function removes the specified characters from the beginning and end of a specified text string.
vl-string-trim combines the vl-string-left-trim and vl-string-right-trim functions.
characters specifies a text string listing the characters to be removed.
string specifies the string to be trimmed of characters.
The function returns a text string with all matching leading and ending characters removed.
Examples
: (vl-string-trim " " " declaration ")
"declaration"
: (vl-string-trim "sun" "sun rain sun")
" rain "