[dynamic4] Handle whitespace during sentence generation