Fixed a bug caused by an improper comparison

Between a string and an array of tuples. This will resolve #7