Example strings
one thousand only two hundred twenty seven
How do I change the first character of a string in capital letter and not change
The following will give you the same consistent output regardless of the value of your inputString:
if(StringUtils.isNotBlank(inputString)) { inputString = StringUtils.capitalize(inputString.toLowerCase()); }