Check by patterns