macro_rules! substring { ($string:expr, $start:expr, $length:expr) => { ... }; ($string:expr, $start:expr, $length:expr, $max_length:expr) => { ... }; }