Improved code example intention by using String.prototype.contains

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>