Can all this be replaced with: ".".join(pargraph_id)?