setFilter

@russian-dima The substr method has deprecated and is no longer recommended.
But substring() is fine.