Fix drupal 6/7 check string