making write_strings, and some digit checking