trimming the table name to ~ 40 chars