What does ‘stretch’ mean?

stretch

( n ) A term, especially in prison. My brudda did a stretch in Attica for kissing an on-duty police officer.