updated the renameFiles method in RenameBehavior to take a String filter as argument