use clojure built-in function

instead of charAt .length etc