   [x]
   (let [lines (.split x "\n")
         trimmed-lines (remove empty? (map #(.trim %) lines))
-        reassembled (clojure.string/join "\n" trimmed-lines)]
+        reassembled (join-string "\n" trimmed-lines)]
     (if (< 1 (count trimmed-lines))
       (str "\n" reassembled)
       reassembled)))

  [v]
  (->> (range (.size v))
       (map #(.get v %))
       (clojure.string/join " ")))

(defn str-vector
  "Convert a sequence of strings into a Micro-Manager StrVector."

    (def gui nil)
    (def mmc mmc))

(defn join-string [sep coll]
  (apply str (interpose sep coll)))

(defn load-mm
  "Load Micro-Manager gui and mmc objects."
  ([gui]
