Fixed scraping bug by adding trim