public static String cleanKeyForFilename ( String projectKey ) { String cleanKey = StringUtils . deleteWhitespace ( projectKey ) ; return StringUtils . replace ( cleanKey , ":" , "_" ) ; }
Clean provided string to remove chars that are not valid as file name .