Nucleophilic aromatic substitution in the pyrrole ring