Writes and reads the same number of characters