Refactored the TableScraper.extract_name function a little