Given a string s, return a new string using run-length compression. Replace each group of consecutive repeated characters with the character followed by its count, but only when the count is greater than 1. The function should return the compressed string as a string.
def compress_string(s):