Few changes

Need a truncate function