String.p.contains is obsolete (replaced by String.p.includes)
use String.p.indexOf instead