Functions Learning Mode

Which one of the following functions can be used to compress a string?