addding '!' to string in BNF syntax