changed .equals to .contains

Where it makes sense though, only "clear" remains .equals