adding trim() for page in driver.js