PigLatin java capitalization and punctuation [on hold]

Hi im working on a piglatin in java project for school where we have to use capitalization. so if the word is Hello it print Ellohay. But I am not really sure how to do that. I also don’t know what to do if the word as punctuation in it. If you get a word hello! then it should return ellohay! Please help!