Checking suffix differenctly to satisfy jscs