Adjusted exception error output, replaced String.indexOf() with String.contains() for @aybabtme.