- (string-trim string [pred start end]) → stringprocedure
- (string-trim-right string [pred start end]) → stringprocedure
- (string-trim-both string [pred start end]) → stringprocedure
Returns a string obtained from the given subrange of string by skipping over all characters on the left side / on the right side / on both sides that satisfy pred: pred defaults to char-whitespace?.
(string-trim-both " The outlook wasn't brilliant, \n\r") ⇒ "The outlook wasn't brilliant,"