[dynamic1] Handle whitespace during sentence generation