o questo
var s = "font-family";
s.substring(0, s.indexOf("-")) + s.charAt("s.indexOf("-")+1).toUpperCase() + s.substring(s.indexOf("-")+2)