capture first paragraph in document
remove trailing dot from product names
extract function refactor