Complete parenBit and nestParen functions