This plugin replaces “Javascript” with “JavaScript” in post content, post titles, and comment content.
It has no settings, just activate it and it works immediately.
You just need to pass your text to the function capital_S_dangit()
and it will replace “Javascript” with “JavaScript” in that text.
For exampe:
$my_text = capital_S_dangit( $my_text );
or
add_filter( 'my_custom_filter', 'capital_S_dangit' );