adjustments to string code