Two return values are commented out because of problems associated with them. The final example, using String.valueOf(Object) is NOT commented out because it works the best each time it is run whether ...
Check if a file is really a file, whether a string contains anything, and whether you can run a program with these vital patterns.