Why bother yourself parsing uri strings? Just use storage SDK:
```
CloudStorageAccount srcStorageAccount = new CloudStorageAccount(<Create Storage Credentials using Key>)
use srcStorageAccount.TableEndpoint or srcStorageAccount.TableStorageUri
```