handling content as str in write_study