public static String[] readLines(URL url) throws IOException {

	        Reader fileReader = new InputStreamReader(url.openStream(), Charset.forName("UTF-8"));
	        List<String> lines;
	        try (BufferedReader bufferedReader = new BufferedReader(fileReader)) {
	            lines = new ArrayList<>();
	            String line;
	            while ((line = bufferedReader.readLine()) != null) {
	            	//own trying to get rid of all special char but space.
	            	//----
	            	line = line.replaceAll("[^\\w\\s]+", "");
	            	//----
	                lines.add(line);
	            }
	        }
	        return lines.toArray(new String[lines.size()]);
	    }