fix: can get file name even path endwiths white space chars