add basic logic for multiple string writing