trim URL's