Adding `write-string` implementation