Add getUrlFromString function to UrlHelper