Put charAt and charCodeAt into utility fns