strip junk off of a table name