A system and method for the modification and purification of peptides