Refactoring of emailValidator function
Refactoring of TitleCaseString function