class NewWorkspaceProjectUtils {

    public static String sanitizeProjectName(final String projectName) {
        // Only [A-Za-z0-9_\-.] are valid so strip everything else out
        return projectName != null ? projectName.replaceAll("[^A-Za-z0-9_\\-.]",
                                                            "") : projectName;
    }

}