//! String Compression (Run-Length Encoding, Production-Grade)
//!
//! Compresses a string using run-length encoding. Only compresses if the result is shorter.
//!
//! # Arguments
//! * `s` - The string slice to compress.
//!
//! # Returns
//! * `String` - The compressed string, or the original if compression does not reduce length.
//!
//! # Example
//! ```rust
//! use pofk_algorithm::string_algorithms::string_compression::string_compression;
//! assert_eq!(string_compression("aabcccccaaa"), "a2b1c5a3");
//! assert_eq!(string_compression("abc"), "abc");
//! ```