Remove whitespace at the end of s.
(s-trim-right "trim ") ;; => "trim" (s-trim-right " this") ;; => " this"