clojure.string/trimr (clojure.string/trimr s) Answers s with whitespace trimmed from the right only. Run(println (str "[" (clojure.string/trimr " hi ") "]")) ; [ hi]