class ArticleCleaner {

    public static String clean( final Context context, String value ) {
        Log.d( TAG, "clean : enter" );

        if( null == value || "".equals( value ) ) {

            return value;
        }

        String cleaned = value;

        String[] articles = context.getResources().getStringArray( R.array.articles );
        String upper = cleaned.toUpperCase( Locale.getDefault() );

        for( String article : articles ) {
            article = article + " ";
            Log.d( TAG, "clean : article=" + article + ", cleaned=" + cleaned );

            if( upper.startsWith( article ) ) {
                Log.d( TAG, "clean : article found" );

                cleaned = cleaned.substring( article.length() ).trim();
            }

        }

        Log.d( TAG, "clean : exit - cleaned=" + cleaned );
        return cleaned;
    }

    private  ArticleCleaner();

}