I am using Javascript to populate a contact form however one of the strings comes out in capitals due to how it is added, I.E SCHOOLNAME
<script type="text/javascript">
var userName = '<ecom:PersonFirstName runat="server" /> <ecom:PersonLastName runat="server" />';
$('div.contact-form-name input').val(userName);
var school = '<acc:AccountName runat="server" />';
$('div.contact-form-school input').val(school);
</script>
Is it possible to change the case of the "school" to camel case no matter how it is originally found, SChool, school, School.
This should also apply if the name is "SCHOOL NUMBER ONE" should appear as "School Number One"