Fixed a few issues with accepting incorrect input strings.
Added Tuple class for simplicity and to help output the input, token pair.