Made it possible to constrain the types of characters segmented