Manages chars. Made in JavaScript