Test writing strings.