getCommentData now returns a single string to log