private static String repeat(String str, int count) {
        final StringBuilder result = new StringBuilder(str.length() * count);

        for (int i = 0; i < count; i++) {
            result.append(str);
        }

        return result.toString();
    }
Repeats the specified substring a number of times.

@param str    the string to repeat
@param count  the number of times to repeat it
@return       the new string
runtime-parent/runtime-core/src/main/java/com/speedment/runtime/core/internal/util/TextUtil.java