const isAscii = (str) => /^[\x00-\x7F]+$/.test(str);
const isAscii = (str: string): boolean => /^[\x00-\x7F]+$/.test(str);