How do I trim leading and trailing whitespace in Common Lisp?
CL-USER> (string-trim
'(#\Space #\Newline #\Backspace #\Tab
#\Linefeed #\Page #\Return #\Rubout)
" A string ")
"A string"
string-left-trim
and string-right-trim
for leading and trailing whitespace, respectively.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With