strip junk and old trace messages