change String to URL in getUrl