Refactored, using clojure.string, added substring? function by myself