how to write for strings