JSFiddle - React, Tailwind, and code Playground

by B L Praveen

JavaScript

str = "manual_transfer"
str = str.replace('_',' ').replace(/(?:_|\b)(\w)/g, function(str, p1) { return p1.toUpperCase()});
alert(str);