Don't clone and use string instead of clone.
Some optimizations on frequently called functions.