The string '{}' is valid while '{{}' is invalid as well as '}{'.
Now, is this one valid: '{{{{v{a{l{{i{d or }i}}}n}v}}al}i}d?' ?