create backtrace for printing strings