edited string code