Fixed bug calling getUrl() on string