Fixed a bug caused by an improper comparison between a string and an array of tuples.
Merge pull request #8 from jeremyprice/type_error_fix

Fixed a bug caused by an improper comparison