Added a new string function Truncate()