Changing getURL() methods to use String.format