delete slash from the end of the uri