Leveraging Path.java for filename manipulation