tokens: The most straightforward modification to your code would be to use String.substring - you know exactly where the thing you want to replace is , so make use of that information :
ner_tags: O O O O O O O O O O O B-Function O O O O O O O O O O O O O O O O O O O O