Turning a set of string to constant case

Help needed urgently.
I have a question that needs to change a set of strings to constant case. That is replacing spaces with underscores, removing punctuations, and capitalizing all letters. using only these string functions: are: charAt(), length(), toUpperCase(), toLowerCase(). The only Character class functions allowed are: isAlphabetic(), isLetter(), isSpaceChar(), isUpperCase(), isLowerCase(), toUpperCase(), toLowerCase().
Thank you…

This topic is cross-posted (related content and urgency) here: