add string field parsing function