Updated truncate function to latest available version

- updated to latest PHPCake truncate function
- URL: https://github.com/cakephp/cakephp/blob/master/lib/Cake/Utility/String.php