problem 5 (peeked at solution, had to look up how to calculate total # characters found in a string and string.replaceAll)