Added checking for brackets in postTweet and postMessage