Corrected character lookup