Fix drupal_substr