var final = input.length == i + 1 || input[i + 1] == ' ';
output += cols[col].split(' ')[final ? 1 : 0];
}
else if (col < cols.length) {
var final = input.length == i + 1 || input[i + 1] == ' ';
output += cols[col].split(' ')[final ? 1 : 0];
}
else if (col < cols.length) {