Update chat manager to use String.format instead of StringBuilder

Replace all instances of StringBuilder with String.format