I am using WordUtils
from apache commons to properly normalize people's names. For example,
AnGEl lEe -> Angel Lee
And it works great. Now one of the test cases I've come up with is hyphenated names. Typically, each part of the hyphen(s) have the first letter capitalized, so I expect
AnGeL lEe-YaNG --> Angel Lee-Yang
However, using my existing method that simply calls capitalizeFully
results in
Angel Lee-yang
How can this be done?