you should use the delimitertokenizer here and if it is not directly applicable make it applicable for finding the next string