Fix small error in StringModify code