Enforcing string start/end check. See #1687