fragility_curves.js ~  convert camelcase string to space seperated strings