Removed multiple usage of strtolower() from is_valid_ajax() method