Changed checks to be string comparisons instead of integers.  close #301