strip comment characters when joining comment lines together