The padding I want is not properly concatenating, i.e. the white spaces are not showing up. Not sure why it isn't showing up and have been at it for a couple hours tweaking the code with no solution in sight.
var padWord = function(word){
if(endsInPunctuation(word)){
trueLength = (word.length)-1;
}else{
trueLength = word.length;
}
switch(trueLength){
case 1:
word = " " + word.fontcolor("red");
break;
case 2:
word = " " + word.replaceAt(1, word.charAt(1), "red");
break;
case 3:
word = " " + word.replaceAt(1, word.charAt(1), "red");
break;