Nesting string contains assertions