If this outputStr do not need to synchronized between thead, use StringBuilder instead, which is faster.