
Something messed up with codepen today or maybe just my browser (Firefox Dev edition) but here is the function to capitalize the 1st letter of a word in a string.
[codepen_embed height=”300″ theme_id=”21518″ slug_hash=”XoyBNM” default_tab=”js,result” user=”Kauress”]See the Pen <a href=’https://codepen.io/Kauress/pen/XoyBNM/’>XoyBNM</a> by Kauress (<a href=’https://codepen.io/Kauress’>@Kauress</a>) on <a href=’https://codepen.io’>CodePen</a>.[/codepen_embed]