Strip leading & trailing whitespace from file paths. Refs #7277

Allows for copying in extra characters by accident when finding a file.
Merge remote-tracking branch 'origin/feature/7277_filesearch_strip_whitespace'