Fixed error reporting line using String.charCodeAt -> String.fromCharCode