Parse case-insensitive stuff into network.str_type

This is optional but client.py does it.
Some cleanups