parse backtrace to make it pretty