The function string-trim-whitespace
returns a substring of string, with all whitespace characters stripped off the beginning and end. A whitespace character is a character for which whitespace-char-p returns t
.
whitespace-char-p
cl:string-trim
LispWorks User Guide and Reference Manual - 20 Sep 2017