I am still new how would I put in a function to replace certain characters with others and did I even compress this string right? Here is what I have to do.
Write two general functions to process strings.
The first function is named Compress. It takes two parameters. The first is the string to be compressed. The second parameter is the character that is to be removed from the string, for instance a space (but it would not need to be a space: it could be any character)
The second function is named Replace. It takes three parameters. The first is the string to be considered. The second is the character to be found in the string. The third is the character to replace the found character with.