Modify AppendComment to absorb duplicate comments
When appending a comment which is equivalent to the existing string, then simply return the existing string.
When appending a comment which is equivalent to the existing string, then simply return the existing string.