Updating the code for compatibility with Cortex pull request 160.

We should make sure the pull request in Cortex go first.
Removed unecessary format calls.
Merge pull request #634 from ldmoser/readTagsWithTagFilter

Updating the code for compatibility with Cortex pull request 160.