package org.xander.katas;

public class WordWrap {
    public String wrap(String testString, int columnNumber) {
        if (testString.length() < columnNumber) {
            return testString;
        }
        StringBuilder stringBuilder = new StringBuilder(testString);
        String result = "";

        for (int i = columnNumber; i > 0 ; i--) {
            if (testString.charAt(i) == ' ') {
                return result +=
                        stringBuilder.substring(0, i)
                        + wrap(stringBuilder.deleteCharAt(i).insert(i, '\n').toString().substring(i),
                               columnNumber).toString();
            }
        }
        return testString;
    }
}

@@ -269,36 +269,8 @@
 ng);
-%0A        String result = %22%22;
 %0A%0A  
@@ -307,17 +307,16 @@
 r; i %3E 0
- 
 ; i--) %7B
@@ -390,42 +390,8 @@
 urn 
-result +=%0A                        
 stri

Update WordWrap.java