https://southernmatron.blogspot.com/2013/12/how-to-automatically-shrink-url-of.html