Move stringLength definition up.