Don't do string manipulation for paths etc. that is what File is for, then you can check it exists.