Added trim trailing slash