shorten a long url to a short url.