Renamed reportHeader variable, further parsed into title
Extracted the table name from the table header (sub process to same at report level)
Rewrote if logic to pull table name from report header when report name exists