Minor simplification of in_comment function