Could use Sting Tokenizer as more multiplatform friendly example but is great example like always ;)