package com.akm.http.util;

import static java.util.Locale.ENGLISH;

import org.apache.http.util.TextUtils;

/**
 * String utility functions.
 *
 * @since 0.7
 * @author Amir
 */
public final class StringUtil {
    /**
     * Returns a copy of the given string with the first letter capitalized.
     *
     * @param str
     *            the string to capitalize
     * @return the capitalized string
     */
    public static String capitalize(final String str) {
        if (TextUtils.isBlank(str)) {
            throw new IllegalArgumentException(
                    "cannot capitalize blank string");
        }

        return str.substring(0, 1).toUpperCase(ENGLISH) + str.substring(1);
    }

    private StringUtil() {}
}

package com.akm.http.util;

import java.util.Locale;

import org.apache.http.util.TextUtils;

/**
 * String utility functions.
 *
 * @since 0.7
 * @author Amir
 */
public final class StringUtil {
    /**
     * Returns a copy of the given string with the first letter capitalized.
     *
     * @param str
     *            the string to capitalize
     * @return the capitalized string
     */
    public static String capitalize(final String str) {
        if (TextUtils.isBlank(str)) {
            throw new IllegalArgumentException(
                    "cannot capitalize blank string");
        }

        return str.substring(0, 1).toUpperCase(Locale.ENGLISH) +
                str.substring(1);
    }

    private StringUtil() {}
}

Remove static import