fixed call to isReservedWord(str, tok) function