xxxxxxxxxx
// js function to remove underscore from string
function removeUnderscore(str) {
return str.replace(/_/g, " ").toUpperCase();
}
removeUnderscore("camera_source"); // 'CAMERA SOURCE'
removeUnderscore("camera_source_type_"); // 'CAMERA SOURCE TYPE '