added parsing to remove spaces and parens from filename