public static String extractTitleFrom(String filePath)
	/*
	 *  The extractNameFrom method checks the ID3 version of the mp3 file and 
	 * extracts the song title from the MP3 file.
	 */{
		String title = null;
		try 
		{
			Mp3File mp3File = new Mp3File(filePath);
			if (mp3File.hasId3v2Tag())
			{
				ID3v2 id3v2Tag = mp3File.getId3v2Tag();
				title = id3v2Tag.getTitle();
			}
			
			else if (mp3File.hasId3v1Tag())
			{
				ID3v1 id3v1Tag = mp3File.getId3v1Tag();
				title = id3v1Tag.getTitle();
			}			
			
		} catch (UnsupportedTagException e) 
		  {
			  e.printStackTrace();
		  } 
		  catch (InvalidDataException e) 
		  {
			  System.out.print("Invalid Data");
			  return " - Unknown Title";
			  //e.printStackTrace();
		  } 
		  catch (IOException e) 
		  {
			
			  e.printStackTrace();
		  }



		if(title == null) {
            int lastSlash = filePath.lastIndexOf('\\');
            if(filePath.lastIndexOf('/') > lastSlash)
                lastSlash = filePath.lastIndexOf('/');

            title = filePath.substring(lastSlash + 1).replaceAll("\\.mp3$","");
        }



		
		return title;
	}