string tokenization CLI and update to the library methods