string grammar updated