Implement the RLE (run-length encoding) function for compressing a string with repeating characters: replace sequences of identical characters with the character and the number of repetitions; if a character appears only once, do not output the count.