npm i titleize-simple
it will take a username, and transform it into an uppercase or lowercase formatted according to its correct form and return it as it should be shown in the ui.
Titleize('Katherina neal trudy hope')
//~> Katherina Neal
Titleize('RIKKI TOLLY DYAN FOSTER')
//~> Rikki Tolly
Titleize('marinho da silva timoteo')
//~> Marinho da Silva