String sentence = "hello world!"; String capitalized = StringUtil.capitalizeWords(sentence); // "Hello World!"
String singular = "dog"; String plural = StringUtil.pluralize(singular); // "dogs"
Listfruits = Arrays.asList("apple", "banana", "orange"); String joined = StringUtil.join(", ", fruits); // "apple, banana, orange"
String nullable = null; String notNull = StringUtil.notNullize(nullable); // ""Overall, `StringUtil` provides convenient ways to manipulate strings in various ways, making it a useful utility class for many applications.