Tail write a string or a list