Code to shorten urls like tiny url