updated the alphabetic characters loop