Minimal check for then inside a string literal.

Avoid false positive for wrong then layout.