protected function textAfterString($haystack, $needle)
  {
    $result = "";
    $needleLength = strlen($needle);

    if($needleLength > 0 && preg_match("#$needle([^\r\n]+)#i", $haystack, $match))
    {
      $result = trim(substr($match[0], -(strlen($match[0]) - $needleLength)));
    }

    return $result;
  }