In the tryptophan case, the nitrogen lone pairs are delocalized, and they are part of an aromatic system. Therefore, that nitrogen is not basic enough, and hence it has a low “pKa” of around -3.8.Whereas, in histidine, the nitrogen whose lone pair is not donated in the ring can be defined as basic enough.