Accept any quoting/spacing style
Fix replace of URLs starting with '//'

To allow the request to that URL to be done, we needed to prefix it with
 "http:". However, that new URL was assigned to the same variable, what
 caused the replace to not find anything.