Expect correct number of characters written