Add string parsing to determine destination

Now opens connections to the correct host and
port instead of just www.google.com.