new method for get the stacktrace elements as a String.