Added a is_valid_token function and functionality for < and >
Zero byte to end of buffers for input and output strings