Revert "Revert "Adding Function to Parse file name""

This reverts commit 3e778e4ea3fcbeff6eaa4113695420d3fbb888c5.