Adapt compute_display_string_pos to iteration over strings.