finished the validateURL function (string function) and added comments to the function.