refactoring tokenSpearatorExtractor