for (var i=0; i<message.length; i++) { myChar = message.charAt(i); if ((myChar>="α") && (myChar<="ω")) { // a to z brailleArr.push(BrailleChar(myChar, myChar)); prevCharNum = false; } else if((myChar>="Α") && (myChar<="Ω")) { // A to Z brailleArr.push(BrailleChar("cap", "Caps")); brailleArr.push(BrailleChar(myChar, myChar)); prevCharNum = false; } else if((myChar>"0") && (myChar<="9")) { if (!prevCharNum) brailleArr.push(BrailleChar("num", "Number")); brailleArr.push(BrailleChar(String.fromCharCode(myChar. charCodeAt(0) + 48), myChar)); prevCharNum = true;