Remove trailing whitespace
Check filetype for find alternate