Implemented writing of words and strings in WriteMessage().