detect ) at the end of a label