Fixed overlapping string copy bug.