Makes proper use of charCodeAt