Checks if the protocol of a given valid URI matches protocol.
protocol
a URI string
a protocol string (e.g. "http")
true if the protocol matches.
true