moved text extraction from parse method to new private method