remove trailing slash from code