Chemical evolution of protein folding in amino acids