$comment = (join "\n
", grep {!/^\s+$/} split/[\n\r]+/, $comment);