word filter and substr filter now take inclusion into account; replaced if else bullshit with ternaries