use more Clojure functions instead of Java-specific API

- str/replace is more effictive in given case, as we're performing string->string
  replacement, not the regex->string replacement
- (str x) is the same as (.toString x)
- same for the str/trim function