remove ending space character from comment