changed name to write-str