Write a utility class StringTools (final, private constructor, a constant VOWELS, static methods only):
countVowels(s);countWords(s)— words are separated by one or more spaces;titleCase(s)—hello BIG world→Hello Big World;slug(s)— trimmed, lower case, spaces replaced by_;isPalindrome(s)— ignoring case and everything that is not a letter or digit.
StringToolsApp.main calls all five on every non-empty input line.
For the input
hello BIG world
A man, a plan, a canal: Panama
two spaces
the program prints
"hello BIG world"
vowels: 4, words: 3
title: Hello Big World
slug: hello_big_world
palindrome: false
"A man, a plan, a canal: Panama"
vowels: 10, words: 7
title: A Man, A Plan, A Canal: Panama
slug: a_man,_a_plan,_a_canal:_panama
palindrome: true
" two spaces "
vowels: 3, words: 2
title: Two Spaces
slug: two___spaces
palindrome: false