/**
  * Check string for containing disallowed names
  * @param   string    $string         String to check
  * @return  boolean TRUE if strong does not contains disallowed names, FALSE otherwise
  */
 function checkString($string = '')
 {
     $result = true;
     if ($string != '') {
         if (empty($this->names_cache)) {
             $this->getDisallowedNames();
         }
         if (!empty($this->names_cache)) {
             $string = _pcpin_strtolower($string);
             foreach ($this->names_cache as $name_data) {
                 if (false !== _pcpin_strpos($string, _pcpin_strtolower($name_data['name']))) {
                     $result = false;
                     break;
                 }
             }
         }
     }
     return $result;
 }
 /**
  * Check string for containing bad words
  * @param   string    $string         String to check
  * @return  boolean TRUE if strong does not contains bad words, FALSE otherwise
  */
 function checkString($string = '')
 {
     $result = true;
     if ($string != '') {
         if (empty($this->words_cache)) {
             $this->getWords();
         }
         if (!empty($this->words_cache)) {
             $string = _pcpin_strtolower($string);
             foreach ($this->words_cache as $badword_data) {
                 if (false !== _pcpin_strpos($string, _pcpin_strtolower($badword_data['word']))) {
                     $result = false;
                     break;
                 }
             }
         }
     }
     return $result;
 }