Apache Commons Lang
Use ready-made Java helpers for strings, types and common collections.
apache · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
Add org.apache.commons:commons-lang3:3.22.0 to a small Java project. Normalize a fictional field label and abbreviate it to a selected width.
What we tested
3.22.0. Normalize a fictional field label and abbreviate it to a selected width. Normalized the internal spacing and shortened the label to nine characters.