limit the length of a sentence