fix regex so that you can have spaces embedded in file names.  it now only strips leading and trailing whitespace