String (@NotNull final String rawPattern) { final String filePattern = StringUtil.trimStart(rawPattern, FILE_PREFIX); String sampleName = filePattern.replaceAll("\\*", "ab"); if (PathUtil.isValidFileName(sampleName)) { return filePattern; } return null; }