AMD and browsers.
Avoid infinite loop with unfinished strings.