WriteLine changed with Write in for loop