Changed to check for case insensitive http: and https:
Added check for end and beginning of the string
Fixed another case where the previous check passed
Merge pull request #3019 from WebsiteDeveloper/Issue-3013

Changed to check for case insensitive http: and https: