Hi I have a number counter with "$" infront and "goal" at the back that moves accordingly to the length of the numbers, did it with the following expression and a slider.

I am trying to decrease the font size of the word "goal". Since it's in the same text layer, I am not sure how to do that with code. Can anyone help ?

Thank you in advance.

`s = Math.round(effect("Slider Control")("Slider")).toString();`

outStr = s.substr(-s.length, (s.length-1)%3 +1);

for (i = Math.floor((s.length-1)/3); i > 0; i--){

outStr += "," + s.substr(-i*3,3);

}

"$"+ outStr +" goal";