Work with string class, fixing bug.