Fixed a bug where strcmp not compared to 0 (i.e. it acted opposite from
intended)