Indentation
Fixed regex checking for filename for output filename generation