You can use a regular expression to match you and then pass a function, here is an example of converting CSS properties:
"margin-top".replace(/-([a-z])/, function(a, l) { return l.toUpperCase(); })
. -alpha ( ) -upperalpha, , , .toUpperCase() .toLowerCase() ( - ) , .