Added trim on urls