StackTrace tool: get a stacktrace as a string