corrected string field generation