private String cleanString(String in) {
        StringBuffer out = new StringBuffer();
        char[] c = in.toCharArray();

        for (int i = 0; i < c.length && i < 20; i++)
            if (Character.isLetterOrDigit(c[i]) || c[i] == '-' || c[i] == '_' || c[i] == ' ') out.append(c[i]);

        return out.toString();
    }