remove only the trailing slash