original_string: private static function removeLastSeparator($sUrl)
      {
          $cLastChar = substr($sUrl, -1);
          if (in_array($cLastChar, RouteCollection::getSeparator())) {
              $sUrl = substr($sUrl, 0, -1);
          }
          return $sUrl;
      }
code: private static function removeLastSeparator($sUrl)
      {
          $cLastChar = substr($sUrl, -1);
          if (in_array($cLastChar, RouteCollection::getSeparator())) {
              $sUrl = substr($sUrl, 0, -1);
          }
          return $sUrl;
      }
code_tokens: private static function removeLastSeparator ( $ sUrl ) { $ cLastChar = substr ( $ sUrl , - 1 ) ; if ( in_array ( $ cLastChar , RouteCollection :: getSeparator ( ) ) ) { $ sUrl = substr ( $ sUrl , 0 , - 1 ) ; } return $ sUrl ; }
docstring: Remove last separtor in URL.
  
  @since   1.0
  @param   string $sUrl Current URL.
  @return  string $Url without last separator.
docstring_tokens: Remove last separtor in URL .