Figure 3: String 2 created as a substring of String 1 without the substring optimization