Ver original'NombreApellido'.replace(/[A-Z]/g, function(char, index, str) { return index != 0 ? ' ' +char : char;});// "Nombre Apellido"