       (when coll
         (.append sb (first coll))
         (recur (next coll))))
-    (str sb)))
+    (. sb (toString))))
 
-(defn- replace-by
-  [s re f])
+;; TODO all replace* functions pending regexp support
+#_(defn- replace-by
+    [s re f]
+    )
 
-(defn replace
-  "Replaces all instance of match with replacement in s.
+#_(defn replace
+    "Replaces all instance of match with replacement in s.
 
    match/replacement can be:
 

   pattern / (string or function of match).

   See also replace-first."
  [s match replacement])

(defn- replace-first-by
  [s re f])

(defn- replace-first-char
  [s match replace])

(defn replace-first
  "Replaces the first instance of match with replacement in s.

   match/replacement can be:


(ns cljs.string
  ;; TODO pending refer-clojure exclude support
  #_(:refer-clojure :exclude [replace reverse])
  (:require [goog.string :as gstring]
            [goog.string.StringBuffer :as gstringbuf]))
