How do I make the first letter of a string uppercase, but not change the case of any of the other letters?
For example:
\"this is a test\"
yourString.replace(/^[a-z]/, function(m){ return m.toUpperCase() });
(You may encapsulate it in a function or even add it to the String prototype if you use it frequently.)