I want to Capitalize first letter only and other should be small using CSS
String is:
SOMETHING BETTER sOMETHING bETTER Something bett
Why dont you just use the :first-letter pseudo element in css?
h2:first-letter{ text-transform: uppercase; } h2{ *your general code for h2 goes here;* }