Fixed incorrect case of variable name
Syntax fixes to passify PyCharm
Implement issue #17
No need to ensure typos are not the given hostname, as it is removed from the set towards the end.