added 1-5: compressString.cc