Implement "Strip comments from a string".