Updated code, added the containsString function