Added strictMode() method to set the strict mode