Generate URL strings containing variables