In my jQuery I have a `myTable` string:

```
var myTable = "<table width='100%'><tr>";

```

After adding some data in `<td>`s to `myTable` like

```
myTable += <td>...</td><td>...</td>

```

then closing the table like:

```
myTable += "</tr><table>"

```

the `myTable` string is now:

```
"<table width='100%'><tr><td>...</td><td>...</td></tr><table>"

```

Is it possible to remove the last (and only the last) `"</tr><table>"` from the table. The `<td>`s can contain nested `<table>`s.

So at the end `myTable` should be something like `<table width='100%'><tr><td>...</td><td>...</td>"`.