Fixed a bug where an empty last token (e.g. '' or "") was not being processed.

Also, disabled debug printing.