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
Update July 2019
Currently, the most up-to-date library function for doing this is contained in
org.apache.commons.lang3.StringUtils
import org.apache.commons.lang3.StringUtils;
StringUtils.capitalize(myString);
If you're using Maven, import the dependency in your pom.xml:
org.apache.commons
commons-lang3
3.9