SI-7740 Trim stack trace before printing in REPL

review @paulp