character extraction