Function URL.fromString
Constructs a URL from its string representation.
TODO
additional validation required (e.g. valid host and user names and port)
Constructs a URL from its string representation.
additional validation required (e.g. valid host and user names and port)