added truncate function
Added :capitalize