Remove usages of String.prototype.contains

Deprecated and to be replaced by String.prototype.includes in the
future.