The application should should add space whenever it encounters uppercase letter using angularjs code example
Example: typescript space between capital letters
s = s.replace(/([A-Z])/g, ' $1').trim()
s = s.replace(/([A-Z])/g, ' $1').trim()