pub fn string_slice(s: &str, offset: i64, length: Option<i64>) -> String
Apply offset and length to string (from subst.c ${PARAM:offset:length} handling)