added scala repl functions
fixed dir to work on string class