Adds a function to strip url from uri