private String[] grabLines(Integer[] lines, InputStreamReader reader)
	{
		BufferedReader br = new BufferedReader(reader);

		List<Integer> lineList = Arrays.asList(lines);
		Collections.sort(lineList);


		int currentLine = 1;
		String line;
		int selectIndex = 0;
		String[] selectedLines = new String[lines.length];

		while (selectIndex != selectedLines.length)
		{
			try
			{
				line = br.readLine();
				if (lineList.contains(currentLine++))
				{
					if (line.length() > size)
						lineList.set(selectIndex, currentLine);
					else
						selectedLines[selectIndex++] = line.toLowerCase();
				}

			} catch (IOException e)
			{
				e.printStackTrace();
			}
		}

		try
		{
			br.close();
			reader.close();
		} catch (IOException e)
		{
			e.printStackTrace();
		}
		return selectedLines;
	}