Process trailing slash first