class FileHelper {

    public static boolean isFileName(String name) {
        Pattern pattern = Pattern.compile("\\.[A-Za-z0-9]{2,5}$", Pattern.CASE_INSENSITIVE);
        return pattern.matcher(name.trim()).find();
    }

    private  FileHelper();

}