fixed typo in gettok -- accidentally used assignment instead of equality operator