class DefaultSimilarNamesPolicy extends AbstractPolicy implements SimilarNamesPolicy {

    String clean(String string)
    {
        String clean = string.toUpperCase();
        // TODO need more stuff!
        clean = clean.replaceAll("(\\bSTREET\\b|\\bST\\b)", "");
        clean = clean.replaceAll("(\\bAVENUE\\b|\\bAVE\\b)", "");
        clean = clean.replaceAll("(\\bBOULEVARD\\b|\\bBLVD\\b|\\bBL\\b)", "");
        clean = clean.replaceAll("(\\bPLACE\\b|\\bPL\\b)", "");
        clean = clean.replaceAll("(\\bNORTH\\b|\\bSOUTH\\b|\\bEAST\\b|\\bWEST\\b)", "");
        clean = clean.replaceAll("(\\bPARKWAY\\b|\\bPKWY\\b)", "");
        clean = clean.trim();
        if (clean.isEmpty()) {
            // Screw it, return the original
            return string;
        }
        return clean;
    }

}