Fixed a bug in TrimComments, which will cause a "out of range" exception when opperating a line with out comment.