Moved AsString to accept inputoutput tokens.