I am trying to check to see if a string that I am going to use as URL starts with http. The way I am trying to check right now doesn\'t seem to be working. Here is my code:<
Swift version:
if line.hasPrefix("#") { // checks to see if a string (line) begins with the character "#" }